Skip to content

Instantly share code, notes, and snippets.

View refractalize's full-sized avatar

Tim Macfarlane refractalize

View GitHub Profile
@refractalize
refractalize / gist:cb6285c0b66466212e4e6ea203e84e9d
Last active March 2, 2018 13:54 — forked from dobiedad/gist:8c70d77d1f2412096a6e7a215779bd20
Changing a property React+Redux vs Hyperdom

Hyperdom

import hyperdom from 'hyperdom'
import h from hyperdom.html
import renderProductGrid from '../productGrid'
import ProductService from '../../services/product'

class Orders {
  constructor(){
@refractalize
refractalize / install_node-oracledb_on_elcapitan.md
Last active January 13, 2017 11:30 — forked from kubo/install_node-oracledb_on_elcapitan.md
Install node-oracledb on OS X 10.11 El Capitan

Installing Oracle Clients on Mac OS X El Capitan

(This page is a simplification of another guide to installing oracle on Mac OS X, from which this was forked.)

Get InstantClient version numbers

Run these brew commands:

brew install InstantClientTap/instantclient/instantclient-basiclite

Having a wee bit o trouble with the async paradigm?

pogoscript has a calling convention for async functions, taken from the Node.js fs module, many other libraries use it, but not all. The callback is called like this:

callback(error, result);

So

fs.readFile(filename, function (error, result) { ... });