I hereby claim:
- I am joshuarrrr on github.
- I am joshuarrrr (https://keybase.io/joshuarrrr) on keybase.
- I have a public key ASDL1d5ijTM1YmP16Rq1ngt3XXFhlV6zU7a0_U6LdT2LWAo
To claim this, I am signing this object:
| var platform = "myVideoPlatform"; | |
| var strategy = { | |
| platform: platform, | |
| searchTags: ["DIV"], | |
| verify: function(elem) { | |
| return (' ' + elem.className + ' ').indexOf(" my_video ") !== -1; | |
| }, | |
| subscribe: function(elem) { | |
| var playerApi = myVideoJsApi(elem); | |
| playerApi.on("play", function(playedVideoMetadata) { |
I hereby claim:
To claim this, I am signing this object:
| var mainTextStyles = [ | |
| "color: #fff", | |
| "background: #5ba745", | |
| "font-weight: bold", | |
| "display: block", | |
| ].join(";") | |
| var errorStyles = [ | |
| "color: #fff", | |
| "background: #D05C4D", | |
| "font-weight: bold", |
Install Duplicator plugin
Build package (optionally filter out large image files)
Download archive and installer to an empty directory
Create a softlink to the directory ({name}) in the webserver folder
$ sudo ln -s /{name} /var/www/html/{name}
Change ownership of the directory to make it writable
| /* | |
| * Wrap a block of text to a given width | |
| * via http://bl.ocks.org/mbostock/7555321 | |
| */ | |
| var wrapText = function(texts, width, lineHeight) { | |
| texts.each(function() { | |
| var text = d3.select(this); | |
| var words = text.text().split(/\s+/).reverse(); | |
| var word = null; |
| (function() { | |
| 'use strict'; | |
| angular | |
| .module('lightning', []) | |
| .controller('MainCtrl', MainCtrl); | |
| MainCtrl.$inject=['$http']; | |
| function MainCtrl($http) { |
This line chart is constructed from a TSV file storing the daily average temperatures of New York, San Francisco and Austin over the last year. The chart employs conventional margins and a number of D3 features:
[ Launch: test ] 8ea45000d4d17c0a0fea by joshuarrrr[ Launch: test ] 4653053 by enjalot[ Launch: test ] 4652017 by enjalot[ Launch: test ] 4582399 by enjalot
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.27.2"></script> | |
| <style type="text/css"> | |
| path { | |
| fill: none; | |
| stroke: #000; | |
| stroke-width: 7px; |
| # | |
| # Before running: | |
| # $ gem install twitter | |
| # | |
| # Register a Twitter application to get auth credentials: | |
| # https://dev.twitter.com/apps | |
| # | |
| # To run: | |
| # $ ruby counter.rb upworthy.com 500 | |
| # |