These are the Kickstarter Engineering and Data role definitions for both teams.
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
require 'fiber' | |
class Fiber | |
def map &block | |
Fiber.new { loop { Fiber.yield block.call(resume) } } | |
end | |
def to_a | |
[].tap{|xs| xs << resume while alive?} |
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
ActiveRecord::Schema.define(:version => 20120620132905) do | |
create_table "tasks", :force => true do |t| | |
t.string "name" | |
t.integer "sender_id" | |
t.integer "receiver_id" | |
end | |
create_table "users", :force => true do |t| | |
t.string "name" | |
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
class Future | |
include java.util.concurrent.Callable | |
@@executor = java.util.concurrent.Executors::newFixedThreadPool(5) | |
def initialize(&block) | |
@block = block | |
end | |
def on_success(&block) |
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
// https://gist.github.com/markpapadakis/8dba5c480c13b12a056e (example) | |
// https://medium.com/@markpapadakis/high-performance-services-using-coroutines-ac8e9f54d727 | |
#include <switch.h> | |
#include <switch_print.h> | |
#include <switch_ll.h> | |
#include <switch_bitops.h> | |
#include <md5.h> | |
#include <text.h> | |
#include <network.h> |
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
package main | |
import ( | |
"bufio" | |
"encoding/csv" | |
"encoding/json" | |
"fmt" | |
"io" | |
"os" | |
"path/filepath" |
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 python | |
""" | |
Check all existing Docker containers for their mapped paths, and then purge any | |
zombie directories in docker's volumes directory which don't correspond to an | |
existing container. | |
Taken from: https://github.com/docker/docker/issues/6354 | |
""" | |
import logging | |
import os |
Some notes about:
- Explaining why current day Linux memory swap thrashing still happens (as of 2016).
- Mitigating "stop the world" type thrashing issues on a Linux workstation when it's under high memory pressure and where responsiveness is more important than process completion.
- Prioritizing and limiting memory use.
- Older ulimit versus newer CGroup options.
These notes assume some basic background knowledge about memory management, ulimits and cgroups.
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 Main | |
import Data.Vect | |
-- %hide transpose | |
dot : Num a => Vect n a -> Vect n a -> a | |
dot va vb = foldr (+) 0 $ zipWith (*) va vb | |
Matrix : (rows : Nat) -> (cols : Nat) -> Type -> Type |
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 bash | |
# BASH TIPS - | |
# http://kvz.io/blog/2013/11/21/bash-best-practices/ | |
set -o errexit | |
set -o nounset | |
set -o xtrace | |
# TMUX CONFIG |
OlderNewer