I hereby claim:
- I am gcmurphy on github.
- I am gmurphy (https://keybase.io/gmurphy) on keybase.
- I have a public key whose fingerprint is 634C 0EB3 217B 3080 5C9A 0ACB 8362 ECFD 8F22 453B
To claim this, I am signing this object:
def edit_dialog(**kwargs): | |
EDITOR = os.environ.get("EDITOR", "vim") | |
with tempfile.NamedTemporaryFile(suffix=".tmp") as tmp: | |
if 'prefill' in kwargs: | |
tmp.write(kwargs.get('prefill')) | |
tmp.flush() | |
subprocess.call([EDITOR, tmp.name]) | |
output = "" | |
with open(tmp.name) as message: |
def draft_email(**kwargs): | |
cmd = ["mutt"] | |
if 'to' in kwargs: | |
cmd.append(",".join(kwargs.get('to'))) | |
if 'subject' in kwargs: | |
cmd.append("-s") | |
cmd.append(kwargs.get('subject')) |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Check if your site is still up and send you a direct tweet if it isn't | |
# | |
# [dependencies] | |
# libwww-perl | |
# ruby-gem -> t | |
# | |
# [setup] | |
# mkdir ~/twitter_alerts | |
# t authorize |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
#include <assert.h> | |
bool constant_time_compare(const char *lhs, size_t lhs_sz, const char *rhs, size_t rhs_sz) | |
{ | |
size_t i; |
-- http://www.seas.upenn.edu/~cis194/hw/01-intro.pdf | |
module Main where | |
-- | Return the last digit of an integer | |
-- | |
-- >>> lastDigit 123 | |
-- 3 | |
-- | |
-- >>> lastDigit 0 | |
-- 0 |
module Main where | |
type Peg = String | |
type Move = (Peg, Peg) | |
{- | |
| Towers of hanoi solution | |
>>> hanoi 2 "a" "b" "c" | |
[("a","c"),("a","b"),("c","b")] | |
move n-1 disc from a to c using b as temporary storage |
module HW02 where | |
import Words | |
import Data.List | |
-- Though a Scrabble hand is the same Haskell type as a Scrabble word, they | |
-- have different properties. Specifically, a hand is unordered whereas a word | |
-- is ordered. We denote this distinction by using a type synonym to talk | |
-- about hands, even though we could just say `String`. |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <netdb.h> | |
char SSLv3_ClientHello[] = { |
package main | |
import ( | |
"bytes" | |
"debug/elf" | |
"fmt" | |
"os" | |
) | |
func staticallyLinked(file *elf.File) bool { |