I hereby claim:
- I am davepeck on github.
- I am davepeck (https://keybase.io/davepeck) on keybase.
- I have a public key whose fingerprint is A93D 3832 FDB8 179C 0BDE A8EB 876D DC96 FA1F 58D8
To claim this, I am signing this object:
# The OSX Mavericks upgrade installer can totally corrupt group ownership of | |
# files in user home directories. Typically, it looks like the Mavericks installer | |
# simply sets (most? all?) of the files to the same gid as your uid, which may be nonsense. | |
# Specifically, most single-user OS X installs have uid=501 for the default user, | |
# so gid is typically 501 too. | |
# Step 0: make sure your user is still part of its group: | |
dseditgroup -o edit -t user -a <your_user_name> <your_user_name> | |
# (The second occurence of <your_user_name> is actually the group name) |
@property (strong, nonatomic) id observer; | |
// ... | |
- (void)startListening | |
{ | |
__weak MyClass *wself = self; | |
self.observer = | |
[[NSNotificationCenter defaultCenter] addObserverForName:@"foo" object:nil queue:nil usingBlock:^(NSNotification *note){ | |
MyClass *sself = wself; |
I hereby claim:
To claim this, I am signing this object:
Alien in base 16: 183C7EDBFF245AA5 | |
Alien in base 32: 1GF3URFVI8ML5 | |
Alien in base 36: D9NURFZQYYSL | |
Alien in morse, base 16: ['.----', '---..', '...--', '-.-.', '--...', '.', '-..', '-...', '..-.', '..-.', '..---', '....-', '.....', '.-', '.-', '.....'] | |
Alien in morse, base 32: ['.----', '--.', '..-.', '...--', '..-', '.-.', '..-.', '...-', '..', '---..', '--', '.-..', '.....'] | |
Alien in morse, base 36: ['-..', '----.', '-.', '..-', '.-.', '..-.', '--..', '--.-', '-.--', '-.--', '...', '.-..'] |
def interleave(iterables, cmp=None, key=None, reverse=False): | |
""" | |
Given a collection of iterables, walk through them in | |
parallel, at each step yielding the current value | |
that comes first in the sort order, and advancing | |
that single iterator. | |
If each iterable is already sorted, this will produce | |
a total ordering. If not, it produces a 'greedy' ordering | |
# Levenshtein distance with the ability to reward or punish | |
# longer contiguous matching runs (set contiguousBonus < 1.0 for rewards) | |
stringDistance = (s, t, deleteCost=1, insertCost=1, substitutionCost=1, contiguousBonus=1.0) -> | |
sLength = s.length | |
tLength = t.length | |
d = [] | |
for i in [0..sLength] | |
d[i] = [{score: i, contiguous: 0}] |
#!/bin/bash | |
open "http://www.yubnub.org/parser/parse?command=$(echo -n "$*")" |
#!/bin/sh | |
## script POMODORO for OSX! ## | |
# # | |
# requires the GNU gdate command to format dates # | |
# it's available through macports, in the coreutils package # | |
# this script also requires Growl to display notifications # | |
# # | |
# Times are coded as follows: # | |
# @ long break : 30 minutes # |
Foo bar
biz bazz!