Skip to content

Instantly share code, notes, and snippets.

View ybur-yug's full-sized avatar

yburyug ybur-yug

View GitHub Profile
@ybur-yug
ybur-yug / test.py
Created March 29, 2015 18:18
This is the vanilla python interpreter before and after importing some system libs
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):
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
@ybur-yug
ybur-yug / gist:e0877e38283cef1a76f5
Created April 4, 2015 02:58
joe biden on the onion
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/
@ybur-yug
ybur-yug / th
Created April 5, 2015 03:46
test
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!
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 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");
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
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
#!/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