I hereby claim:
- I am randombrein on github.
- I am randombrein (https://keybase.io/randombrein) on keybase.
- I have a public key whose fingerprint is 2C32 B010 07BB F5D2 9D6A 928D 5276 996E 63B2 9769
To claim this, I am signing this object:
function urlencode(str) | |
if (str) then | |
str = string.gsub (str, "\n", "\r\n") | |
str = string.gsub (str, "([^%w ])", | |
function (c) return string.format ("%%%02X", string.byte(c)) end) | |
str = string.gsub (str, " ", "+") | |
end | |
return str | |
end |
#include <algorithm> | |
#include <array> | |
#include <chrono> | |
#include <functional> | |
#include <iostream> | |
#include <iterator> | |
#include <limits> | |
#include <random> | |
#include <type_traits> |
# -*- coding: utf-8 -*- | |
""" | |
Monotonic increasing sinusoidal curve with same entrance/exit angle | |
""" | |
import numpy as np | |
import pylab | |
def discrt_tan(x0, y0, x1, y1): |
#import <Foundation/Foundation.h> | |
typedef void (^ReceptionistTask)(NSString *keyPath, id obj, NSDictionary *change); | |
@interface Receptionist : NSObject | |
+ (instancetype)receptionistForObject:(id)obj withKeyPath:(NSString*)keyPath withQueue:(NSOperationQueue*)queue withTask:(ReceptionistTask)task; | |
@end | |
@implementation Receptionist { | |
id _observerdObj; |
/* | |
We have to jump through some serious hoops to get the bundle of the caller; | |
[self class] doesn't work reliably when our classes are generated at the runtime. | |
Instead, we fetch the return address, look up the container image, | |
and attempt to match it against a loaded bundle. | |
*/ | |
NSBundle *bundle = nil; | |
void *p = __builtin_return_address(0); |
I hereby claim:
To claim this, I am signing this object:
import shutil | |
from os.path import expanduser, dirname, abspath, join, isfile | |
from datetime import datetime as dt | |
import lxml.html | |
from biplist import readPlist, writePlist, InvalidPlistException, NotBinaryPlistException | |
from time_uuid import TimeUUID | |
""" | |
TODO: | |
- read/unread |
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacadexport | |
export PATH="$HOME/bin:$PATH" | |
export PATH="/usr/local/bin:$PATH" | |
export PATH="/usr/local/sbin:$PATH" | |
alias ll='ls -l' | |
alias nano='nano -m -S' | |
alias subl="'/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl'" |
#!/bin/bash | |
################################ | |
# Xcode post-build action script | |
# to send adhoc to TestFlight over Upload API | |
# | |
TESTFLIGHT_BUILD=1 | |
if [[ $TESTFLIGHT_BUILD -ne 1 ]] | |
then | |
exit |