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
// 1 - Create a new user so we can upload patches | |
XCTestExpectation *expectation1 = [self expectationWithDescription:@"createUser timed out (1)"]; | |
[[ChuckPadSocial sharedInstance] createUser:user.username email:user.email password:user.password callback:^(BOOL succeeded, NSError *error) { | |
[self doPostAuthAssertChecks:user]; | |
[expectation1 fulfill]; | |
}]; | |
[self waitForExpectations]; | |
// 2 - Upload a new patch | |
ChuckPadPatch *localPatch = [ChuckPadPatch generatePatch:@"demo0.ck"]; |
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
# displays handy info when in git directories | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \[\1\]/' | |
} | |
function parse_hg_branch { | |
hg branch 2> /dev/null | sed 's/..*/\ \[&\]/' | |
} | |
function prom1 { | |
PS1="\w\ | |
\$(parse_git_branch)\$(parse_hg_branch) " |
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
# google_groups_csv_parse.py | |
# Author: Mark Cerqueira | |
# | |
# Strips out names and emails from Google Groups members list export | |
# | |
# 1. Download CSV from Export Members option in Google Groups | |
# 2. Name file stanfordkendo.csv and place in same directory as this script | |
# 3. Run it! e.g. $ python google_groups_csv_parser.py | pbcopy | |
import csv |
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
09-07 23:49:00.139 31092-31092/? E/AndroidRuntime﹕ FATAL EXCEPTION: main | |
Process: com.teslacoilsw.launcher, PID: 31092 | |
java.lang.RuntimeException: Unable to resume activity {com.teslacoilsw.launcher/com.teslacoilsw.launcher.NovaLauncher}: java.lang.NullPointerException: Attempt to invoke virtual method 'float[] o.eE.eN(int, int, float, float, float, float, float[])' on a null object reference | |
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2986) | |
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3017) | |
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347) | |
at android.os.Handler.dispatchMessage(Handler.java:102) | |
at android.os.Looper.loop(Looper.java:135) | |
at android.app.ActivityThread.main(ActivityThread.java:5254) | |
at java.lang.reflect.Method.invoke(Native Method) |
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
This file was migrated to: https://github.com/markcerqueira/ff-record-keeper |
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
This file was migrated to: https://github.com/markcerqueira/ff-record-keeper |
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
This file was migrated to: https://github.com/markcerqueira/ff-record-keeper |
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
This file was migrated to: https://github.com/markcerqueira/ff-record-keeper |
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
public class MainActivity extends ActionBarActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main_activity); | |
doWork("string_param"); | |
} | |
// Note the parameter variable name (i.e. string) |
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
#!/usr/bin/python | |
# good luck setting up Pillow on your computer! | |
from PIL import Image | |
from PIL import ImageDraw | |
from random import randint | |
# width and height in pixels | |
SIZE = 200 |