Skip to content

Instantly share code, notes, and snippets.

View chrismatthieu's full-sized avatar
🚀
Hacking the metaverse!

Chris Matthieu chrismatthieu

🚀
Hacking the metaverse!
View GitHub Profile
@chrisroos
chrisroos / Gemfile
Created August 16, 2011 09:20
Testing communication between two Tropo clients
source :rubygems
gem 'blather'
@chrismatthieu
chrismatthieu / FETCH_AND_DELETE_COUPONS_FROM_DB
Created September 29, 2011 20:32
Nodester Coupon Submissions
require 'rubygems'
require 'json'
require 'rest_client'
coupons = 'JSON RESULT FROM CURL ABOVE'
table = JSON.parse(coupons)
table["rows"].each do |i|
puts i["value"]["_id"]
Allison (American English Female)
Susan (American English Female)
Dave (American English Male)
Steven (American English Male)
Soledad (American Spanish Female)
Ximena (American Spanish Female)
Carlos (American Spanish Male)
Laila (Arabic Female)
Tarik (Arabic Male)
Diego (Argentine Spanish Male)
@adammw
adammw / 404.html
Created December 27, 2011 08:16
Nodester over-the-top 404...
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>404 - File not found</title>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<style>
html, body { width: 100%; height: 100%; margin: 0px; text-align: center; -webkit-user-select: none; }
var application_root = __dirname,
express = require("express"),
path = require("path"),
mongoose = require('mongoose');
var app = express.createServer();
// database
mongoose.connect('mongodb://localhost/ecomm_database');
@joshj
joshj / server.js
Created February 28, 2012 16:58 — forked from jeffrafter/server.js
Twitter OAuth with node-oauth for node.js+express
/*
Node.js, express, oauth example using Twitters API
Install Node.js:
curl -0 http://nodejs.org/dist/v0.6.11/node-v0.6.11.tar.gz
tar -zxf node-v0.6.11.tar.gz
cd node-v0.6.11
./configure
make
make install
@ry
ry / fib.js
Created March 12, 2012 00:17
a proper fibonacci server in node. it will light up all your cores.
var http = require('http')
var fork = require('child_process').fork;
function fib(n) {
if (n < 2) {
return 1;
} else {
return fib(n - 2) + fib(n - 1);
}
}
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@johannilsson
johannilsson / webrtcgetusermediademo.html
Created April 1, 2012 14:28
WebRTC getUserMedia Demo
<!doctype html>
<!--
To run this demo you need to have seriously and the nightvision effect.
wget https://raw.github.com/brianchirls/Seriously.js/master/seriously.js
mkdir effects
cd effects
wget https://raw.github.com/brianchirls/Seriously.js/aacdc75665d98a52c8a0c2e0e0cbbf85b136a151/effects/seriously.nightvision.js
-->
<html>
@rwaldron
rwaldron / 140char-photobooth.js
Created May 18, 2012 20:46
140 Character Photo Booth - ENABLE MEDIA SOURCE ON VIDEO IN CHROME CANARY UNDER ABOUT:FLAGS
var d=document,v;d.body.appendChild(v=d.createElement("video"));navigator.getUserMedia({video:1},function(s){v.src=URL.createObjectURL(s)});