Skip to content

Instantly share code, notes, and snippets.

View crtr0's full-sized avatar

Carter Rabasa crtr0

View GitHub Profile
### Keybase proof
I hereby claim:
* I am crabasa on github.
* I am carterrabasa (https://keybase.io/carterrabasa) on keybase.
* I have a public key whose fingerprint is BBF3 AD23 FD40 EC24 1E16 BF9F 4495 F1D3 412F B86B
To claim this, I am signing this object:
@crtr0
crtr0 / jsconfeu_talk_notes.md
Last active August 29, 2015 14:06
Notes for my JSConf EU 2014 talk entitled "A Community of People, Not Projects"

A Community of People, Not Projects

  • Carter Rabasa
  • Developer Evangelist, Twilio
  • JSConf EU 2014

Introduction

Audience poll

  • Show of hands, who here has organized an event that brought developers together?
@crtr0
crtr0 / open_sourcing_community.md
Last active August 29, 2015 14:11
Open Sourcing Community links
using System;
using System.Collections.Generic;
using JWT;
namespace HelloWorld
{
class Hello
{
static void Main()
{
@crtr0
crtr0 / sublevel-test.js
Created August 23, 2015 17:18
Insert a document with a compound key using sublevel, and try to read it out.
var Sublevel = require('level-sublevel')
, Levelup = require('levelup')
, bytewise = require('bytewise')
var db = Sublevel(Levelup('./db', {keyEncoding: bytewise, valueEncoding: 'json'}))
var foo = db.sublevel('foo')
foo.put(['carter', 'rabasa'], {eyes: 'brown'}, function(err) {
foo.createReadStream().on('data', console.log)
@crtr0
crtr0 / install_rvm_rails.sh
Created February 21, 2012 18:11
Installing RVM and Rails on Mac OSX Lion
#!/bin/sh
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
source ~/.bash_profile
rvm install 1.9.2
rvm --default 1.9.2
gem update
gem install rails
@crtr0
crtr0 / twilio_demo.js
Created April 5, 2012 19:49
Fetch some SMS messages from Twilio and call the senders
var magic = function () {
twilio.getSmsMessages("623-850-4926", "2012-04-02", function (success) {
success.sms_messages.forEach(function (message) {
twilio.makeCall("623-850-4926", message.from, "http://demo.rabasa.com/tombstone.php");
});
});
};
@crtr0
crtr0 / win8-js-restapi-boilerplate.js
Created June 15, 2012 19:37
Win8 JS library boilerplate for REST services
(function (globals) {
var
// The username and password for BASIC auth
username,
password,
// CHANGE THIS
apiRoot = "https://api.foo.com/version",
@crtr0
crtr0 / gist:2976718
Created June 23, 2012 03:41
Infinite loop
[06/22 20:39:58 PDT] ERROR: failed to save vote info to DB, retrying
[06/22 20:39:58 PDT] ERROR: failed to save vote info to DB, retrying
[06/22 20:39:58 PDT] ERROR: failed to save vote info to DB, retrying
[06/22 20:39:58 PDT] ERROR: failed to save vote info to DB, retrying
[06/22 20:39:58 PDT] ERROR: failed to save vote info to DB, retrying
[06/22 20:39:58 PDT] ERROR: failed to save vote info to DB, retrying
[06/22 20:39:59 PDT] ERROR: failed to save vote info to DB, retrying
[06/22 20:39:59 PDT] ERROR: failed to save vote info to DB, retrying
[06/22 20:39:59 PDT] ERROR: failed to save vote info to DB, retrying
[06/22 20:39:59 PDT] ERROR: failed to save vote info to DB, retrying
Application = Thorax.Application.create()
# convenience for debugging
window.Application = Application
# main view controller
Application.ViewController.create
parent: Application
routes:
'': 'index'