Skip to content

Instantly share code, notes, and snippets.

(ns debugger-playground.wrap2
(:use [clojure.pprint :only (pprint)])
(:require [clojure.tools.trace :as trace]
[clojure.set :as set])
)
;; Lists of functions which can all be wrapped the same way
(def treat-as-function-call
"special forms which can be wrapped as if they were functions (all
elements of the list get evaluated.)"
(ns debugger-playground.wrap2-test
(:use [clojure.pprint :only (pprint)])
(:require [debugger-playground.wrap2 :as w]
[clojure.tools.trace :as trace]
[clojure.set :as set]
[debugger-playground.core :as c]
[clojure.test :refer :all]))
(require '[debugger-playground.wrap2 :as w] :reload)
#!/bin/bash
set -x
echo "assumes java 7 is instlaled openjdk versio"
#pre dependencies
sudo apt-get install git-core pkg-config libtool automake make g++ connect-proxy unzip python
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
(ns key-queue
"Cribbed from https://gist.github.com/tomconnors/8460406 . We
should probably rewrite.
The key function is KeyboardHandler, which takes a KEYMAP, a map
from key combinations as descibed in event->key and match-keys to
functions of no arguments. This component sets up a loop which
checks for key combinations in KEYMAP, calling the associated
function when they happen. Key sequences can be represented as
strings, with consecutive key events separated by a space. Keys in
/*
* drivertest.cpp
* Vector addition (host code)
*
* Andrei de A. Formiga, 2012-06-04
*/
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

Keybase proof

I hereby claim:

  • I am coventry on github.
  • I am coventry (https://keybase.io/coventry) on keybase.
  • I have a public key whose fingerprint is FFEA 2040 FF16 EDCD 7EFC 02DE 14BC F4C5 365C FF98

To claim this, I am signing this object:

@coventry
coventry / search.py
Created August 3, 2017 22:53
Simple binary search of Troy Hunt's password list
#!/usr/bin/python
import sys
import sha
f = open('/tmp/pwned-passwords-1.0.txt')
minpos = 0
f.seek(0, 2)
maxpos = f.tell() / 42 # Number of hashes