The original emojifortun.es implementation!
http://requirebin.com/?gist=lukekarrys/10309585
made with requirebin
function drawVisualization() { | |
// Create and populate the data table. | |
var data = google.visualization.arrayToDataTable([ | |
['Name', 'Height',], | |
['X', 97], | |
['Y', 97] | |
]); | |
// Create and draw the visualization. | |
new google.visualization.ImageLineChart(document.getElementById('visualization')). |
var fs = require('fs'); | |
var path = require('path'); | |
var filename = function (file) { | |
return path.basename(file, path.extname(file)); | |
}; | |
module.exports = function exportDirectory (dir) { | |
var dirPath = path.resolve(__dirname, dir); |
function walk(a,b){var c,d,e=0;do c||(c=b.call(a,e)===!1),!c&&(d=a.firstChild)?++e:(d=a.nextSibling)?c=0:(d=a.parentNode,--e,c=1),a=d;while(e>0)}walk(document.documentElement,function(){if(this.nodeType==3)this.nodeValue=this.nodeValue.replace(/./g,"ANTHONY")}); |
var pointsFor = 0, pointsAgainst = 0; | |
jQuery('.mod-content .game-schedule .score').each(function() { | |
var score = jQuery(this), | |
win = score.prev().hasClass('win'), | |
scoreText = score.children('a').text().split('-'), | |
s1 = parseInt(scoreText[0], 0), | |
s2 = parseInt(scoreText[1], 0); | |
pointsFor += (win) ? s1 : s2; | |
pointsAgainst += (win) ? s2 : s1; |
/* Got this from Instagram Profile Pages http://d36xtkk24g8jdx.cloudfront.net/bluebar/c535104/scripts/bluebar.js */ | |
function get_param(name) { | |
return decodeURI( | |
(RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] | |
); | |
} |
var dateFormat = require('dateformat'); | |
var formatDateRange = function (startProp, endProp) { | |
var monthFormat = 'm', | |
dayFormat = 'd', | |
yearFormat = 'yy', | |
separator = '/', | |
startFormat = monthFormat + separator + dayFormat + separator + yearFormat, | |
endFormat = monthFormat + separator + dayFormat + separator + yearFormat, | |
origStartFormat = startFormat, | |
startDate = new Date(this.get(startProp)), |
var _ = require('underscore'); | |
var inherits = require('inherits'); | |
var delegateEventSplitter = /^(\S+)\s*(.*)$/; | |
module.exports = function (SuperView) { | |
function JQueryView(attrs) { | |
SuperView.apply(this, arguments); | |
// Since $el is a derived property we cant rely on ampersand-view's | |
// internal _handleElementChange since that will delegate events |
The original emojifortun.es implementation!
http://requirebin.com/?gist=lukekarrys/10309585
made with requirebin
Linked to from import-js/eslint-plugin-import#592
npm install
npm run lint
Linked to from reactjs/react-router-redux#244 and answered on SO.
npm install
npm start