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
# Run the benchmarker in the specified mode | |
if benchmarker.list_tests == "True": | |
print "1" | |
benchmarker.run_list_tests() | |
elif benchmarker.list_test_metadata == "True": | |
print "2" | |
benchmarker.run_list_test_metadata() | |
elif benchmarker.parse != "None": | |
print "3" |
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
#include <stdio.h> | |
#include <unistd.h> | |
int main() | |
{ | |
/* fork a child process */ | |
fork(); | |
/* fork another child process */ | |
fork(); | |
/* and fork another */ |
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
#!/bin/bash | |
set -e | |
domain=mislav.net | |
record=511770 # mysubdomain.mislav.net | |
ip="$( curl -s icanhazip.com )" | |
payload="{ \"record\": { \"content\": \"${ip}\" } }" | |
curl -fsS --netrc \ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 csv | |
import glob | |
import plistlib | |
clientProject = 'My Project' | |
for filename in glob.glob("*.bex"): | |
root = plistlib.readPlist(filename) | |
with open(filename+'.csv', 'wb') as out: | |
out = csv.writer(out, delimiter='|') | |
out.writerow(['Slip', 'Start', 'End', 'Duration (minutes)']) |