This file contains hidden or 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 <iostream> | |
#include <fstream> | |
using namespace std; | |
int main(int argc, char *argv[]) { | |
if (argc != 2) { | |
cout << "Usage: " << argv[0] << " FILE_NAME"; | |
exit(EXIT_FAILURE); | |
} |
This file contains hidden or 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
Warning: Your file-system on / appears to be CaSe SeNsItIvE. | |
Homebrew is less tested with that - don't worry but please report issues. |
This file contains hidden or 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/env python | |
import time as t | |
import ujson as u | |
import simplejson as s | |
import json as j | |
N = 100000 | |
x = [{"asderdgaveargeraf": {"asdregegf":3}, "jsdsafsdafkfds":[3, 4], 4:"sadkjsadfekjsdfkljsdfbkdjsf"}] * 2 |
This file contains hidden or 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 urllib.request as u | |
import re | |
# Soppus' private web API | |
url = 'http://www.soppus.com/courseComplete.php' | |
# regular expression of the courses, I use only HTR311 for now | |
regex = re.compile(r'HTR311.*') | |
# Fetch the data and filter appropriate courses |
This file contains hidden or 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
module Main where | |
fb x | |
| x `divp` (3*5) = "FizzBuzz" | |
| x `divp` 3 = "Fizz" | |
| x `divp` 5 = "Buzz" | |
| otherwise = show x | |
where divp x y = (mod x y == 0) | |
main = |
This file contains hidden or 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
// ==UserScript== | |
// @name Use Markdown, sometimes, in your HTML. | |
// @author Paul Irish <http://paulirish.com/> | |
// @link http://git.io/data-markdown | |
// @match * | |
// ==/UserScript== | |
// If you're not using this as a userscript just delete from this line up. It's cool, homey. |