I hereby claim:
- I am bedekelly on github.
- I am bede (https://keybase.io/bede) on keybase.
- I have a public key whose fingerprint is C613 5670 C21C 315D B85E 4788 792C FEC4 88C3 19BA
To claim this, I am signing this object:
import os | |
import ast | |
import sys | |
import csv | |
import boto3 | |
AWS_ACCESS_KEY = "<YOUR ACCESS KEY HERE>" | |
AWS_SECRET_KEY = "<YOUR SECRET KEY HERE>" |
#include <iostream> | |
#include <functional> | |
// Polymorphic linked list node: | |
template<typename T> | |
struct Linked { | |
T data; | |
Linked<T> *next; | |
}; |
#include "assert.h" | |
#include "stdio.h" | |
#include "stdarg.h" | |
#include "stdlib.h" | |
#include "string.h" | |
// Templatized struct type: | |
#define DEFINE_ARRAY_TEMPLATE(T) \ | |
struct T##Array { \ |
I hereby claim:
To claim this, I am signing this object:
import os | |
import nltk | |
TEST_DATA_DIRECTORY = "test_data" | |
NP_GRAMMAR = """ | |
NP: {<DT|PP\$>?<JJ>*<NN>} # chunk determiner/possessive, adjectives and noun | |
{<NNP>+} # chunk sequences of proper nouns | |
{<NN>+} | |
""" |
NP_GRAMMAR = """ | |
NP: {<DT|PP\$>?<JJ>*<NN>} # chunk determiner/possessive, adjectives and noun | |
{<NNP>+} # chunk sequences of proper nouns | |
""" |
from decimal import Decimal, getcontext | |
def n_times(n, f, s): | |
"""Apply a function `f`, `n` times, starting with `s`.""" | |
while n > 0: | |
s = f(s) | |
n -= 1 | |
return s |
module Huffman where | |
import Data.List | |
import Data.Char | |
-- Extract the value from a Maybe type. | |
fromJust :: Maybe t -> t | |
fromJust (Just x) = x | |
fromJust Nothing = error "Can't retrive value from Nothing!" |
// Write a mocked search engine using goroutines. A la Rob Pike. | |
package main | |
import ("fmt"; "time"; "math/rand") | |
type Result string | |
/** | |
* Mock a remote web service, which takes a random amount of time to respond to | |
* a search query. It should respond with the *type* of query it's given, as |
#!/usr/bin/env python3 | |
import json | |
import redis | |
from flask import Flask, request, jsonify | |
app = Flask(__name__) | |
r = redis.StrictRedis(host="localhost", port=6379, db=0) |