This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules/ |
#JavaScript - ANSI Escape Codes
ANSI Escape Codes are special characters which can be used to control formatting, colors or other output preferences in a text terminal. Escape Codes are non-printing code and will not appear in the output directly.
- \033 begins the escape sequence
- [ indicates the color
- 33 is the foreground color for yellow
- m indicates the end of the setting
Note: \033[39m is used set the color back to the terminal defult
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Simple Arithmetics Grammar | |
* ========================== | |
* | |
* Accepts expressions like "2 * (3 + 4)" and computes their value. | |
*/ | |
{ | |
function combine(first, rest, combiners) { | |
var result = first, i; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'sinatra/contrib' | |
require 'sinatra/reloader' if development? | |
get '/' do | |
<<-"EOS" | |
cookies: #{cookies}<br/> | |
<a href="/set">Set the cookie 'something' to 'foobar'</a><br/> | |
<a href="/merge">cookies.merge! 'foo' => 'bar', 'bar' => 'baz'</a> | |
EOS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems | |
gem 'sinatra' | |
gem 'json' | |
gem 'omniauth' | |
gem 'omniauth-oauth2' | |
gem 'omniauth-github' | |
# gem 'omniauth-att', :path => File.expand_path("./../../omniauth-att", __FILE__) | |
gem 'thin' |