This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
charactermap = new Proxy({ | |
' ': 'blank', | |
'?': 'question', | |
'!': 'exclamation' | |
}, { | |
get: (object, key) => | |
key in object | |
? object[key] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hoistStatics from 'hoist-non-react-statics' | |
import React from 'react' | |
/** | |
* Allows two animation frames to complete to allow other components to update | |
* and re-render before mounting and rendering an expensive `WrappedComponent`. | |
*/ | |
export default function deferComponentRender(WrappedComponent) { | |
class DeferredRenderWrapper extends React.Component { | |
constructor(props, context) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(a=Array).apply(0,a(123)).map(String.fromCharCode).slice(97) | |
i=96,r=[];while(i++<122)r.push(String.fromCharCode(i));r | |
'abcdefghijklmnopqrstuvwxyz'.split('') | |
String.fromCharCode[b='apply'](0,(a=Array)[b](0,a(123)).map(a.call,Number)).slice(97) | |
i=97,eval(Array(27).join('String.fromCharCode(i++)+')+'""') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var replayURL = 'http://fightcodegame.com/robots/replay/'; | |
var ai = 'duck'; | |
function load ( event ) { | |
event.preventDefault(); | |
var playerNumber = $( '#playerNumber' ).val(); | |
var replayID = $( '#replayID' ).val(); | |
$.get( replayURL + replayID ).done(function ( data ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'octokit' | |
require 'csv' | |
require 'date' | |
# Github credentials to access your private project | |
USERNAME="___USERNAME___" | |
PASSWORD="___PASSWORD___" | |
# Project you want to export issues from | |
USER="IRISInc" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
/* just forking yr while loops */ | |
main() | |
{ | |
int age, legal; | |
age = 10; | |
// Britishising. | |
legal = 18; |