I hereby claim:
- I am lukesteensen on github.
- I am lukesteensen (https://keybase.io/lukesteensen) on keybase.
- I have a public key ASDsXeTVnF6Mo3dCZUQdgTA6Dfa8KiYxrPYF2S5tqc9LeQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
fn main() { | |
let mut input = include_str!("../../day9.txt").chars(); | |
let mut gc = 0; | |
let mut garbage = false; | |
let mut groups = vec![]; | |
let mut open_groups = 0; | |
while let Some(c) = input.next() { | |
if !garbage { | |
match c { |
defmodule Transducers do | |
def map(f) do | |
fn(step) -> | |
fn(x, result) -> | |
step.(f.(x), result) | |
end | |
end | |
end | |
def filter(pred) do |
require 'sinatra/base' | |
class SampleApp < Sinatra::Base | |
get '/' do | |
sleep 0.2 | |
"hello world\n\n" | |
end | |
end | |
run SampleApp.new |
import sys | |
import json | |
import socket | |
import requests | |
from time import sleep | |
# set up a socket for accepting webhook responses | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) | |
s.bind(("0.0.0.0", 9000)) |
<div id="Layer4" style="position:absolute; width:976px; height:125px; z-index:2; left: 13px; top: 237px; margin: 2; padding:0;"> | |
<div id="images" align="center"> | |
<div> | |
<a href="http://dikatole.org/andrew.php"> | |
<img src="./Dikatole Scholarship Fund_files/andrew.jpg" alt="andrew" title="Andrew Veldman"> | |
</a> | |
</div> | |
<div> | |
<a href="http://dikatole.org/ayanda.php"> | |
<img src="./Dikatole Scholarship Fund_files/ayanda.jpg" alt="ayanda" title="Ayanda Cockman"> |
import json | |
from itertools import groupby | |
from operator import itemgetter | |
def hour_func(x): | |
# strip off hours and minutes | |
return x['timestamp'][:-6] | |
import socket | |
import struct | |
import sys | |
if (len(sys.argv) < 3): | |
print "arguments needed: <port> <filename>" | |
exit() | |
UDP_IP = '' |
# Stock simulation script | |
# | |
# reads in historical values from 'testdata.csv' and tests | |
# whether or not the programmed trading algorithm beats | |
# the market | |
require 'date' | |
require 'csv' | |
require 'bigdecimal' |