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
[email protected] ./node_modules/imap | |
[email protected] ./node_modules/graceful-fs | |
[email protected] ./node_modules/flickr-js | |
[email protected] ./node_modules/gdata-js | |
[email protected] ./node_modules/mime | |
[email protected] ./node_modules/colors | |
[email protected] ./node_modules/underscore | |
[email protected] ./node_modules/async | |
[email protected] ./node_modules/eyes | |
[email protected] ./node_modules/api-easy |
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
21 Dec 21:41:44 - info: dashboardv3 started at pid 147, running startup callbacks. | |
[dashboardv3] | |
[dashboardv3] events.js:45 | |
[dashboardv3] throw arguments[1]; // Unhandled 'error' event | |
[dashboardv3] [dashboardv3] [dashboardv3] ^ | |
[dashboardv3] Error: EROFS, Read-only file system '/tmp/83556e2559a9f9e47147fcf84b6c9f85.png' | |
21 Dec 21:41:44 - info: dashboardv3 process has ended. (1:null) |
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
class Player | |
attr_accessor :directions, :fled, :inverse | |
def initialize | |
@directions = [:forward, :left, :right, :backward] | |
@inverse = {:forward => :backward, :left => :right, :right => :left, :backward => :forward} | |
@fled = false | |
end | |
def play_turn(warrior) |
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
set nocompatible | |
set number | |
set ruler | |
syntax on | |
" Shit i added: | |
set hidden | |
set history=1000 | |
runtime macros/matchit.vim | |
set scrolloff=3 |
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
Started GET "/" for 127.0.0.1 at 2012-01-22 16:36:51 -0800 | |
Processing by IndexController#index as HTML | |
Rendered notifications/_notifications.html.haml (1.3ms) | |
Rendered items/_search.html.haml (0.8ms) | |
Rendered items/_todo_item.haml (0.0ms) | |
Rendered users/_todo.html.haml (2.1ms) | |
Rendered index/dashboard.html.haml within layouts/application (11.5ms) | |
Rendered layouts/_alert.html.haml (0.2ms) | |
Rendered layouts/_js_vars.html.haml (0.2ms) | |
Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.9ms) |
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
{ | |
"channels": [ | |
{ | |
"number": 78, | |
"name": "Zombie Bass", | |
"num_of_listeners": 1, | |
"created_at": "2012-03-21T04:04:36Z", | |
"updated_at": "2012-04-20T01:21:12Z" | |
}, | |
] |
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
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"identifier = %d", 5, nil]; | |
[Channel objectsWithPredicate: predicate]; |
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
class MyClass | |
def value | |
"VALUE!" | |
end | |
def do_something | |
puts defined?(value) # Outputs "method" | |
puts value # Outputs "VALUE!" | |
if false | |
value = 'abcdef' # Should not execute |
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
def pascal(c: Int, r: Int): Int = { | |
if (r < 1 || c < 1 || (c == r)) 1 // handles top of the triangle, and the sides | |
else pascal(c - 1, r - 1) + pascal(c, r - 1) | |
} | |
def pascal(c: Int, r: Int): Int = { | |
if (c == 0 || r == 0 || r == c) 1 else pascal(c - 1, r - 1) + pascal(c, r - 1) | |
} |
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
def balance(chars: List[Char]): Boolean = { | |
val l = '(' | |
val r = ')' | |
def helper(left: Int, right: Int, c: List[Char]): Boolean = { | |
if (c.isEmpty) | |
(left - right) == 0 | |
else { | |
if (right > left) false |