This file contains 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
elektra ⚡ ,ruby do jruby-1.7.0 ruby --version | |
jruby 1.7.0 (1.9.3p203) 2012-10-22 ff1ebbe on Java HotSpot(TM) 64-Bit Server VM 1.7.0_25-b15 [darwin-x86_64] | |
elektra ⚡ ruby --version | |
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.3.0] | |
elektra ⚡ |
This file contains 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
#!/usr/bin/env ruby | |
# | |
require 'json' | |
require 'digest/sha1' | |
paths = {} | |
Dir["**/*"].each do |f| | |
if File.file? f | |
paths[f] = Digest::SHA1.new.update(File.read(f)).hexdigest | |
end | |
end |
This file contains 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
#include <unistd.h> | |
#include <stdlib.h> | |
#include <sys/wait.h> | |
void dump_usage(struct rusage); // Left as an excercise to reader | |
int main(int argc, char** argv) { | |
pid_t pid; | |
struct rusage usage; | |
int loc; |
This file contains 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
src/sc.hs:78:35: | |
Couldn't match type `M.Map String LispVal' with `[(String, b0)]' | |
Expected type: [(String, b0)] | |
Actual type: Env | |
In the second argument of `lookup', namely `env' | |
In the expression: lookup var env | |
In the expression: | |
case lookup var env of { | |
Just value -> True | |
Nothing -> False } |
This file contains 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
import threading | |
import time | |
import requests | |
BACKEND = "http://58.229.183.24/5a520b6b783866fd93f9dcdaf753af08/index.php" | |
SOLUTION = "http://58.229.183.24/5a520b6b783866fd93f9dcdaf753af08/auth.php" | |
s = requests.Session() | |
password = [] | |
guesses = 0 |
This file contains 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 gen(n): | |
if n != 0: | |
yield n | |
gen(n-1) | |
print(list(gen(10))) # What's this print? |
This file contains 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
ifeq (a, a) | |
foobar=butts | |
else | |
foobar=baz | |
endif | |
all: | |
@echo ${foobar} |
This file contains 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
UNAME_S := $(shell uname -s) | |
ifeq (${UNAME_S},Darwin) | |
foobar=butts | |
else | |
foobar=baz | |
endif | |
all: | |
@echo ${foobar} |
This file contains 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
impl Repository { | |
fn path(&self) -> Option<~str> { | |
unsafe { | |
let path = git_repository_path(self.repo); | |
match CString::new(path, true).as_str() { | |
Some(s) => return Some(s.to_owned()), | |
None => return None | |
} | |
} | |
} |
This file contains 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
/Users/richo/code/ext/rust/src/libstd/enum_set.rs:252:29: 252:48 error: type `enum_set::Items<enum_set::test::Foo>` does not implement any method in scope named `collect` | |
/Users/richo/code/ext/rust/src/libstd/enum_set.rs:252 let elems: ~[Foo] = e1.iter().collect(); | |
^~~~~~~~~~~~~~~~~~~ | |
/Users/richo/code/ext/rust/src/libstd/enum_set.rs:256:29: 256:48 error: type `enum_set::Items<enum_set::test::Foo>` does not implement any method in scope named `collect` | |
/Users/richo/code/ext/rust/src/libstd/enum_set.rs:256 let elems: ~[Foo] = e1.iter().collect(); | |
^~~~~~~~~~~~~~~~~~~ | |
/Users/richo/code/ext/rust/src/libstd/enum_set.rs:260:29: 260:48 error: type `enum_set::Items<enum_set::test::Foo>` does not implement any method in scope named `collect` | |
/Users/richo/code/ext/rust/src/libstd/enum_set.rs:260 let elems: ~[Foo] = e1.iter().collect() |
OlderNewer