Skip to content

Instantly share code, notes, and snippets.


Jacques Crocker jacquescrocker

View GitHub Profile
jacquescrocker / gist:9301184
Created Mar 2, 2014
View gist:9301184
# override ember's hashlocation to not do back/forward functionality
setURL: (path) ->

Send Text Messages and Make Phone Calls with Node

The Node Knockout is nigh! As you make last minute preparations for your weekend masterpiece, you may be planning Android, iOS, and browser-based UI for your application. But there's another client platform that's even more ubiquitous - that's the telephone, particularly mobile phones. If you'd like to create experiences for all these devices, Twilio can help you get it done.

In this tutorial, we'll explore how to use the Twilio module for node.js to make and receive phone calls and text messages. This is slightly adapted from a series of introductory blog posts on the Twilio module, which are worth checking out as well if you're interested!

Getting Started

In order to use the Twilio API, you will first need to sign up for a free account. If you sign up with th

View gist:7126640
gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/include/libxml2 \
> --with-xml2-lib=/usr/local/Cellar/libxml2/2.7.8/lib \
> --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26 \
> --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include \
> --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib
Building native extensions with: '--with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.7.8/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26 --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib'
This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
View tumblr-recent-posts.js
This widget shows Recent Posts on your Tumblr blog.
Its dependency is jQuery.
1) Add html:
<div id="recent-posts"></div>
2) Add code into the <head>:
View google.webloc
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
jacquescrocker / _screens.sass
Created Jan 17, 2013
Block Mixins (sass 3.2). You can use these like:
View _screens.sass
// defines some media block mixins for use
// e.g.
// +phone-landscape-and-down
// float: none
// margin-left: 20px
$media-phone-landscape: 480px
$media-tablet-portrait: 768px
jacquescrocker / Gemfile.lock
Created Oct 20, 2012
Gemfile.lock for
View Gemfile.lock
revision: a4edeccd24546e37cb94bcc6cc58c5ef78bc86bc
intercom (0.0.6)
revision: 177ccd5832a2ba75d223d63c03cb6ca3725f9136
jacquescrocker / git commits
Created Oct 16, 2012
Git log for
View git commits
commit b5f461edc696b17a7e2fa5c7ce652a7f2618d67c
Author: Ash Bhoopathy <ash@Ashs-MacBook-Pro-2.local>
Date: Sun Oct 14 16:56:33 2012 -0700
wtf lroem
commit 4f2b1c9d32e0fd636fde822d9f611179422f3f46
Author: Ash Bhoopathy <ash@Ashs-MacBook-Pro-2.local>
Date: Sun Oct 14 16:49:20 2012 -0700
jacquescrocker / Gemfile
Created Oct 16, 2012
Gemfile for
View Gemfile
# deploybtn Gemfile
source ''
gem "rake", ">= 0.9.2"
gem 'rails', ">= 3.2.7"
gem 'json'
gem "rails_config", "0.2.5"
gem "guid"
View hamlbars_extensions.rb
module Haml
module Helpers
module HamlbarsExtensions
def handlebars_if(expression, &block)
handlebars("if #{expression}", &block)
alias hb_if handlebars_if
def handlebars_else(&block)