Skip to content

Instantly share code, notes, and snippets.

View jacquescrocker's full-sized avatar

Jacques Crocker jacquescrocker

View GitHub Profile
@jacquescrocker
jacquescrocker / gist:9301184
Created March 2, 2014 02:54
hash_no_back_hack.coffee
# override ember's hashlocation to not do back/forward functionality
Ember.HashLocation.reopen({
setURL: (path) ->
@replaceURL(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

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.
/*
This widget shows Recent Posts on your Tumblr blog.
Its dependency is jQuery.
Usage:
1) Add html:
<div id="recent-posts"></div>
2) Add code into the <head>:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>URL</key>
<string>https://www.google.com/</string>
</dict>
</plist>
@jacquescrocker
jacquescrocker / _screens.sass
Created January 17, 2013 21:34
Block Mixins (sass 3.2). You can use these like:
// 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
jacquescrocker / Gemfile.lock
Created October 20, 2012 16:16
Gemfile.lock for DeployButton.com
GIT
remote: https://github.com/intercom/intercom-ruby.git
revision: a4edeccd24546e37cb94bcc6cc58c5ef78bc86bc
specs:
intercom (0.0.6)
GIT
remote: https://github.com/railsjedi/guard-process.git
revision: 177ccd5832a2ba75d223d63c03cb6ca3725f9136
specs:
@jacquescrocker
jacquescrocker / git commits
Created October 16, 2012 10:17
Git log for DeployButton.com
commit b5f461edc696b17a7e2fa5c7ce652a7f2618d67c
Author: Ash Bhoopathy <[email protected]>
Date: Sun Oct 14 16:56:33 2012 -0700
wtf lroem
commit 4f2b1c9d32e0fd636fde822d9f611179422f3f46
Author: Ash Bhoopathy <[email protected]>
Date: Sun Oct 14 16:49:20 2012 -0700
@jacquescrocker
jacquescrocker / Gemfile
Created October 16, 2012 10:13
Gemfile for DeployButton.com
# deploybtn Gemfile
source 'https://rubygems.org'
gem "rake", ">= 0.9.2"
gem 'rails', ">= 3.2.7"
gem 'json'
gem "rails_config", "0.2.5"
gem "guid"
@jacquescrocker
jacquescrocker / hamlbars_extensions.rb
Created August 9, 2012 02:36
hamlbars_extensions
module Haml
module Helpers
module HamlbarsExtensions
def handlebars_if(expression, &block)
handlebars("if #{expression}", &block)
end
alias hb_if handlebars_if
def handlebars_else(&block)