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
""" | |
Created on June 19th, 2013. via. Sublime Text 2 | |
@author: lurker | |
""" | |
#!/usr/bin/env python | |
# -*- coding: utf8 -*- | |
import urllib2,httplib |
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
{ | |
"SOUTH": {"1":"5:39","2":"6:29","3":"6:56","4":"7:31","5":"8:06","6":"8:41","7":"9:14","8":"9:49","9":"10:24","10":"11:30","11":"12:36","12":"13:42","13":"14:46","14":"15:52","15":"16:32","16":"17:19","17":"17:56", "18":"18:33","19":"19:07","20":"19:44","21":"20:44","22":"21:44"}, | |
"NORTH": {"1":"5:46", "2":"6:26","3": "6:17","4": "7:52","5": "8:27","6":"9:02","7": "10:11", "8":"11:19","9":"12:25","10": "13:31","11":"14:37", "12":"15:49", "13":"16:30","14": "16:55", "15":"17:35","16": "18:22","17":"19:33","18": "20:33", "19":"21:33", "20":"22:33"} | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Net; | |
using System.Reflection; | |
using GLib; | |
using Gst; | |
using Gst.BasePlugins; | |
using Newtonsoft.Json; | |
using System.Diagnostics; |
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
// debug | |
// right :3 oclock , up: 12 oclock, left : 9oclock, down 6 oclock | |
// Basic functions | |
function isequal(u, v) { | |
if (u[0] === v[0] && u[1] === v[1]) { | |
return true; | |
} else{ | |
return false; | |
} | |
} |
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 <curses.h> | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
int main() | |
{ | |
initscr(); // init curses | |
start_color(); |
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 sys | |
cases = int(raw_input()) | |
for c in xrange(cases): | |
# read in misc problem constants | |
x, y = map(str, raw_input().split()) | |
m = 0 | |
x = int(x) | |
s = int(y[0]) |
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 sys | |
def func(a, sign, b): | |
if a == '1': | |
return (b, sign) | |
if b == '1': | |
return (a, sign) | |
if a == 'i' and b == 'j': | |
return ('k', sign) | |
if a == 'j' and b == 'i': |
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 sys | |
cases = int(raw_input()) | |
for c in xrange(cases): | |
# read in misc problem constants | |
x, y, z = map(int, raw_input().split()) | |
if x == 1: | |
print "Case #%d: GABRIEL" % ((c+1)) | |
if x == 2: |
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 math | |
cases = int(raw_input()) | |
for c in xrange(cases): | |
x = map(int, raw_input()) | |
y = map(int, raw_input().split()) | |
y = sorted(y, reverse=True) | |
m = y[0] | |
res = y[0] | |
for r in range(1, m + 1): | |
move = 0 |
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
Stable build requested. | |
Starting build... | |
Downloading http://cython.org/release/Cython-0.19.2.tar.gz... | |
[=========================] 100.0% (1.3MB of 1.3MB) 0.340MB/s ETA 0s | |
[cython] Building cython/avukqxjtxt3d, follow log with: | |
[cython] tail -f /Users/elsie/.hashdist/tmp/cython-avukqxjtxt3d/_hashdist/build.log | |
Downloading https://pypi.python.org/packages/source/d/docutils/docutils-0.10.tar.gz... | |
[=========================] 100.0% (1.5MB of 1.5MB) 0.342MB/s ETA 0s | |
[docutils] Building docutils/7srggk6bdkqa, follow log with: |
OlderNewer