Skip to content

Instantly share code, notes, and snippets.

View sonhanguyen's full-sized avatar

Harry sonhanguyen

  • Melbourne, Australia
View GitHub Profile
@sonhanguyen
sonhanguyen / hyperact.coffee
Last active April 10, 2017 01:44
make coffeescript act again (act again <- get it?)
try do registerInstaller = -> require 'autoinstall' catch notFound
require('child_process').execSync 'npm i autoinstall'
registerInstaller()
hyperstyles = require 'hyperstyles'
h = require('react-hyperscript')
o = hyperstyles h,
(require 'csjs')"""
.panel {
border: 1px solid black;
_ = require 'lodash'
imdb = require 'imdb-api'
rarbg = require 'rarbgto-api'
fetch = require 'isomorphic-fetch'
cache = require('memoize-fs') cachePath: './memoize-fs'
memoize = ({ store , invalidator }, func) ->
options = { cacheId: store, noBody: true }
atempt = ->
@sonhanguyen
sonhanguyen / index.js
Last active February 22, 2016 05:22
esnextb.in
import React, { PropTypes as t } from 'react'
var inject = (selector = pass => pass ) =>
connect(
({ pass }) => selector(pass),
{ pass: t.object }
)
var Context = Object.assign(
({ children, ...props }, { pass = {} }) =>