View install-composer.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $HOME | |
ln -s `which php54` ~/bin/php | |
export PATH=$HOME/bin:$PATH | |
curl -sS https://getcomposer.org/installer | php54 | |
echo -e "\n# Composer\nalias composer=\"php54 \$HOME/composer.phar\"" >> $HOME/.bash_profile | |
source $HOME/.bash_profile |
View gist:42390f90857e49dbe8dd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Avon | |
Bedfordshire | |
Berkshire | |
Bristol | |
Buckinghamshire | |
Cambridgeshire | |
Cheshire | |
Cleveland | |
Cornwall | |
Cumbria |
View gist:f2156f68a6c6cd2a7a5a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: Quicksilver [8639] | |
Path: /Applications/Quicksilver.app/Contents/MacOS/Quicksilver | |
Identifier: com.blacktree.Quicksilver | |
Version: 1.2.0 (400D) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Quicksilver [8639] | |
User ID: 501 | |
Date/Time: 2014-08-13 23:59:49.067 -0700 |
View gist:65cd9abba29acb410999
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: Quicksilver [382] | |
Path: /Applications/Quicksilver.app/Contents/MacOS/Quicksilver | |
Identifier: com.blacktree.Quicksilver | |
Version: 1.2.0 (400D) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Quicksilver [382] | |
User ID: 501 | |
Date/Time: 2014-08-09 03:06:08.605 +0100 |
View gist:df922342b0742ffaa1d0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': False, | |
'filters': { | |
'require_debug_false': { | |
'()': 'django.utils.log.RequireDebugFalse' | |
}, | |
'require_debug_true': { | |
'()': 'django.utils.log.RequireDebugTrue' | |
} |
View singletons properly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MyObject.h | |
@interface MyObject : NSObject | |
+ (instancetype)sharedInstance; | |
@end | |
// MyObject.m | |
@implementation MyObject |
View gist:7727497
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
malloc_history Report Version: 2.0 | |
Process: Quicksilver [17364] | |
Path: /private/tmp/QS/build/Debug/Quicksilver.app/Contents/MacOS/Quicksilver | |
Load Address: 0x100000000 | |
Identifier: com.blacktree.Quicksilver | |
Version: 1.1.0:master:Debug (4008) | |
Code Type: X86-64 | |
Parent Process: debugserver [17363] | |
Date/Time: 2013-12-01 09:19:26.898 +0800 |
View gist:7727462
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lldb: bt all | |
thread #1: tid = 0xfc43, 0x00007fff89b5825a libsystem_malloc.dylib`__disk_stack_logging_log_stack + 767, queue = 'com.apple.main-thread | |
frame #0: 0x00007fff89b5825a libsystem_malloc.dylib`__disk_stack_logging_log_stack + 767 | |
frame #1: 0x00007fff89b528a0 libsystem_malloc.dylib`malloc_zone_malloc + 107 | |
frame #2: 0x00007fff89b53290 libsystem_malloc.dylib`malloc + 42 | |
frame #3: 0x00007fff82ca46a3 libsystem_c.dylib`_vasprintf + 384 | |
frame #4: 0x00007fff82c9c0fb libsystem_c.dylib`asprintf + 186 | |
frame #5: 0x00007fff8b8fd525 CoreFoundation`-[NSObject(NSObject) __dealloc_zombie] + 85 | |
frame #6: 0x00007fff8b7d8b9b CoreFoundation`-[__NSArrayM dealloc] + 379 |
View gist:6289687
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wave, array, math, time, argparse, sys | |
import numpy, pywt | |
from scipy import signal | |
import pdb | |
import matplotlib.pyplot as plt | |
def read_wav(filename): | |
#open file, get metadata for audio | |
try: |
View gist:6112570
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: Quicksilver [15721] | |
Path: /Applications/Quicksilver.app/Contents/MacOS/Quicksilver | |
Identifier: com.blacktree.Quicksilver | |
Version: 1.0.0:arc (4000) | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [306] | |
User ID: 501 | |
Date/Time: 2013-07-30 20:23:15.912 +0800 | |
OS Version: Mac OS X 10.8.4 (12E55) |
NewerOlder