- Carter Rabasa
- Developer Evangelist, Twilio
- JSConf EU 2014
- Show of hands, who here has organized an event that brought developers together?
| require 'twilio-ruby' | |
| require './creds' | |
| # initialize Twilio client | |
| client = Twilio::REST::Client.new(Creds.ACCOUNT_SID, Creds.AUTH_TOKEN) | |
| # groups all phone numbers based on number of correct answers to trivia questions | |
| pool = [ | |
| [3, ["a", "b", "c"]], | |
| [2, ["d", "e", "f"]], |
| #pragma mark * UIView methods | |
| - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil | |
| { | |
| self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; | |
| if (self) { | |
| // Synchronous networking on the main thread is seriously bad - only doing this for | |
| // demo purposes | |
| NSURL* url = [NSURL URLWithString:@"https://your-domain.azurewebsites.net/capability"]; | |
| NSURLResponse* response = nil; |
| var d = domain.create(); | |
| d.on("error", function(error) { | |
| // handle it | |
| }); | |
| d.run(function() { | |
| // deeply nested and possibly async code | |
| }); |
| ### 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: |
Some sources that I used when building my talk on "Open Sourcing Community"
| using System; | |
| using System.Collections.Generic; | |
| using JWT; | |
| namespace HelloWorld | |
| { | |
| class Hello | |
| { | |
| static void Main() | |
| { |
| 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) |
| /** | |
| * Function to handle a Github OAuth callback | |
| * https://developer.github.com/apps/building-integrations/setting-up-and-registering-oauth-apps/about-scopes-for-oauth-apps/ | |
| * @param {string} code Required. The code you received as a response to Step 1. | |
| * @param {string} state The unguessable random string you provided in Step 1. | |
| * @returns {string} | |
| */ | |
| module.exports = (code, state, context, callback) => { | |
| const axios = require('axios') | |
| axios.post('https://github.com/login/oauth/access_token', { |