Skip to content

Instantly share code, notes, and snippets.


Elaine Tsai etsai

View GitHub Profile
etsai / live_demo.rb
Last active Jan 4, 2016
Basic script of the Twilio Live Demo to introduce Twilio's API
View live_demo.rb
#Add Ruby Library
require "twilio-ruby"
#Connect to my account
@client = 'AccountSid', 'AuthToken'
#Assiging that object so it easier to access my Account
@account = @client.account
#Get a list of all available US phone numbers
etsai / application.js
Created Dec 14, 2013
This is a little racing game created with Javascript and HTML.
View application.js
$(document).ready(function() {
var end_of_track = 15;
var players = [
id: 1,
position: 0,
keycode: 80,
css_locator: '#player1_strip'

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
etsai / form-validator.js
Last active Dec 22, 2015 — forked from ksolo/form-validator.js
Form Validation
View form-validator.js
$("form").submit(function(event) {
var email = $("input:first").val()
var password = $("input:last").val()
var valid_email = /\w+@\w+.\w/
var char_length = /.{8,}/
var digit = /\d+/
etsai / index.html
Last active Dec 22, 2015 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
View index.html
<!doctype html>
<link rel="stylesheet" href="">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href=",400,600,700,800">
<link rel="stylesheet" href=",900">
<link rel="stylesheet" href="">
etsai / SMS Keyword
Created Sep 10, 2012
Keyword functionality example
View SMS Keyword
* Include twilio-php, the official Twilio PHP Helper Library, which can be found at
/* ## Controller ## */
function index(){
View story_presenter_error
Elaines-MacBook-Air:madlib elainetsai$ git pull github ruby_version
* branch ruby_version -> FETCH_HEAD
Auto-merging views/story_presenter.rb
CONFLICT (content): Merge conflict in views/story_presenter.rb
Automatic merge failed; fix conflicts and then commit the result.
class StoryPresenter
attr_reader :story
You can’t perform that action at this time.