View gist:9301184
# override ember's hashlocation to not do back/forward functionality
Ember.HashLocation.reopen({
setURL: (path) ->
@replaceURL(path)
})
View twilio.md

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.
Usage:
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" "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>
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
View Gemfile.lock
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:
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
View Gemfile
# 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"
View hamlbars_extensions.rb
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)