run `mix test test/intro.exs` to continue
hello, world
1) test saying hi to the planet (ElixirKoansTest)
test/hello_world.exs:3
Assertion with == failed
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
devbox% python | |
Python 2.7.8 (default, Oct 20 2014, 15:05:19) | |
[GCC 4.9.1] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> os | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
NameError: name 'os' is not defined | |
>>> sys | |
Traceback (most recent call last): |
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
time = 5 | |
car_positions = [1, 1, 1] | |
while time >= 0 do | |
time = time -1; puts # newline | |
car_positions.each_with_index do |pos, index| | |
if Random.rand > 0.3 | |
car_positions[index] += 1 | |
end | |
print '-' * car_positions[index];puts # newline | |
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
http://www.theonion.com/audio/joe-bidens-alltime-hottest-congressional-lays,32992/ | |
http://www.theonion.com/articles/white-house-infested-with-bedbugs-after-biden-brin,7070/ | |
http://www.theonion.com/articles/biden-now-a-purple-belt,17132/ | |
http://www.theonion.com/articles/biden-receives-lifetime-ban-from-dave-busters,17285/ | |
http://www.theonion.com/articles/biden-to-cool-his-heels-in-mexico-for-a-while,17996/ | |
http://www.theonion.com/articles/clinton-biden-trading-places,18229/ | |
http://www.theonion.com/video/biden-invites-nations-women-to-tax-code-discussion,18245/ | |
http://www.theonion.com/articles/bounced-joe-biden-check-still-taped-up-in-delaware,18287/ | |
http://www.theonion.com/articles/critics-accuse-joe-biden-of-running-for-president,5363/ | |
http://www.theonion.com/articles/philip-morris-ceo-forces-senator-to-dance-for-his,3599/ |
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
df | |
Loren Burton | |
to Miles, me | |
[Show more] | |
Apr 2 | |
Miles, meet Bobby Grayson - a brilliant developer friend who lives and breathes programming. His experience is primarily backend and data science, but has his hands in just about everything. Bobby recently left his last startup and is thinking about what's next. | |
Bobby, meet Miles Beckett, the CEO and co-founder of Silversheet, our medical credentialing startup. As you probably know, lots of interesting opportunities in the space we're about to destroy :) | |
Hoping we can find some opportunity to work together! |
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
extern crate threadpool; | |
use threadpool::ScopedPool; | |
fn main() { | |
let mut numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; | |
{ | |
let pool = ScopedPool::new(4); | |
for x in &mut numbers[..] { |
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
/* | |
This CSS resource incorporates links to font software which is the valuable copyrighted | |
property of Monotype Imaging and/or its suppliers. You may not attempt to copy, install, | |
redistribute, convert, modify or reverse engineer this font software. Please contact Monotype | |
Imaging with any questions regarding Web fonts: http://webfonts.fonts.com | |
*/ | |
@font-face { | |
font-family: "Helvetica-W01-Roman"; | |
src: url("http://static.wix.com/services/third-party/fonts/user-site-fonts/fonts/ea95b44a-eab7-4bd1-861c-e73535e7f652.eot?#iefix"); |
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
module Volt | |
class VoltLogger < Logger | |
... # removing unneeded parts from the module/classes | |
def log_dispatch(class_name, method_name, run_time, args) | |
@current = { | |
args: args, | |
class_name: class_name, | |
method_name: method_name, | |
run_time: run_time |
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
#!/bin/bash | |
set -e | |
git rev-list --reverse HEAD | # get commits from latest to earliest | |
while read rev; do | |
echo; # print newline | |
echo REV $rev; # print REV some_hash | |
git ls-tree -r $rev | # recursively get all of the trees changed files | |
awk '{print $3}'| # get row 3 (shows entire changeset from commit) |
REV b0ac8e8e11f7e63632cf5ae6495aacab5831d159
1167
REV f9b0f336bba3d90049242261e2dc4e9f0b17f639
1167
REV 8d5b14742e172a2f82ad9acfdefe816b5bbd5b4a
1356