Skip to content

Instantly share code, notes, and snippets.

View funkytaco's full-sized avatar

Luis Gonzalez funkytaco

View GitHub Profile
@gido
gido / macosx-install-php-oracle-oci8.md
Last active September 30, 2024 01:51
install Oracle PHP Extension (oracle OCI8) - instantclient for Mac OS 10.8 - homebrew environnement

Installation

This procedure is tested on Mac OS X 10.8 with Developpers tools installed (xCode).

PHP 5.4 installed with Homebrew.

Update: I wrote a blog post about this.

Preparation

Download the following files from Oracle website (yes, you need to create an account and accept terms):

@domenic
domenic / interop.md
Last active July 7, 2022 19:47
`module.exports =` and ES6 Module Interop in Node.js

module.exports = and ES6 Module Interop in Node.js

The question: how can we use ES6 modules in Node.js, where modules-as-functions is very common? That is, given a future in which V8 supports ES6 modules:

  • How can authors of function-modules convert to ES6 export syntax, without breaking consumers that do require("function-module")()?
  • How can consumers of function-modules use ES6 import syntax, while not demanding that the module author rewrites his code to ES6 export?

@wycats showed me a solution. It involves hooking into the loader API to do some rewriting, and using a distinguished name for the single export.

This is me eating crow for lots of false statements I've made all over Twitter today. Here it goes.

@gbsallery
gbsallery / gist:3772907
Created September 23, 2012 20:13
Accelerometer
// Color Blink code example for Hannah
// IO Expander Class for SX1509
class IoExpander
{
i2cPort = null;
i2cAddress = null;
constructor(port, address)
{
@g3d
g3d / gist:2709563
Last active January 9, 2025 17:35 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan
@dholbrook
dholbrook / vagrant_postinstall.sh
Created March 24, 2012 05:27
vagrant centos 5.8 post install
####################
# centos 5.8
# post installation
# adapted from
# https://github.com/jedi4ever/veewee/tree/master/templates/CentOS-5.7-i386-netboot
####################
yum -y install sudo
/usr/sbin/groupadd vagrant
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@mrichardson23
mrichardson23 / skeltrack.pde
Created February 6, 2012 14:37
Skeleton Tracking
import SimpleOpenNI.*;
SimpleOpenNI kinect;
PImage handImage;
void setup() {
kinect = new SimpleOpenNI(this);
kinect.enableDepth();
kinect.enableUser(SimpleOpenNI.SKEL_PROFILE_ALL);
kinect.setMirror(false);
@segphault
segphault / videotest2.html
Created January 20, 2012 10:09
HTML5 photo booth
<html>
<head>
<title>HTML5 Photo Booth</title>
</head>
<body>
<h2>HTML5 Photo Booth</h2>
<video id="live" autoplay></video>
<canvas id="snapshot" style="display:none"></canvas>
@saetia
saetia / gist:1623487
Last active April 20, 2025 23:05
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@sadaco
sadaco / gist:1620813
Created January 16, 2012 13:16
Include less.js with your styles:
<link rel="stylesheet/less" type="text/css" href="style.less">
<script src="less-1.2.0.min.js" type="text/javascript"></script>