Skip to content

Instantly share code, notes, and snippets.

View HyphnKnight's full-sized avatar

Rafe Lepre HyphnKnight

  • Google
  • New York
View GitHub Profile
const {readFileSync} = require('fs');
const buffer= readFileSync('./rawdata','utf8');
const inputs = {};
const grams = {
bi: {},
tri: {},
};
let characterIndex = -1;
import React from 'react';
import {
identity,
curry,
debounce
} from 'lib/func';
import {
'use strict';
const
querystring = require('querystring'),
http = require('http'),
/**
* Converts options and buffer arguments into a proper data object.
* @param {!Object} options Google Closure Compiler options
const
numberOfCPUs = require('os').cpus().length,
cluster = require('cluster');
let activeCPUS = 0;
function chunk( array, number ) {
const
result = [],
import React from 'react-lite';
import {
isUndefined,
isString,
isBoolean,
isEqual,
objectFind
} from './functional';
/* functional.js */
/* Type Testing */
function isNull( x ) {
return x === null;
}
function isUndefined( x ) {
return typeof x === 'undefined';
@HyphnKnight
HyphnKnight / Store.js
Last active November 12, 2016 19:54
A very small state management tool for javascript.
/* Store.js */
function identity( x ) {
return x;
}
function curry2( func, x, y ) {
return function curryInside( z ) {
return func( x, y, z );
}
'use strict';
const
querystring = require('querystring'),
http = require('http'),
/**
* Converts options and buffer arguments into a proper data object.
* @param {!Object} options Google Closure Compiler options