Skip to content

Instantly share code, notes, and snippets.

View chee's full-sized avatar
🍕
partying

chee chee

🍕
partying
View GitHub Profile
@chee
chee / bigify.js
Last active August 14, 2018 13:36 — forked from rowanmanning/bigify.js
Bigify
#!/usr/bin/env node
charactermap = new Proxy({
' ': 'blank',
'?': 'question',
'!': 'exclamation'
}, {
get: (object, key) =>
key in object
? object[key]
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) {
@chee
chee / alpha.js
Last active August 29, 2015 14:01 — forked from angus-c/alpha.js
(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++)+')+'""')
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 ) {
@chee
chee / github_issues_to_csv.rb
Created August 7, 2012 15:49
Exports Github issues to CSV (API v3)
#!/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"
#include <stdio.h>
/* just forking yr while loops */
main()
{
int age, legal;
age = 10;
// Britishising.
legal = 18;