I hereby claim:
- I am gautamk on github.
- I am gautamk (https://keybase.io/gautamk) on keybase.
- I have a public key whose fingerprint is D4D5 FA08 BA6B 2E25 502C 7B4A E080 51F8 245D D05F
To claim this, I am signing this object:
import glob | |
for filename in glob.iglob("*.csv"): | |
firstline = None | |
rest = None | |
with open(filename, 'r') as f: | |
firstline = f.readline().lower() | |
rest = f.read() | |
with open(filename,'w') as f: | |
f.writelines([firstline]) | |
f.write(rest) |
I hereby claim:
To claim this, I am signing this object:
import csv | |
from datetime import datetime | |
with open('expenses.csv','r') as input_csv_file: | |
csv_reader =csv.DictReader(input_csv_file,fieldnames=['Date','Amount','Note','Tag'], delimiter=';') | |
csv_reader.next() | |
with open('monas.csv','w') as output_csv_file: | |
output_csv_file.write('"Date (MM/DD/YYYY)","Category","Amount","Note"\n') | |
writer = csv.DictWriter(output_csv_file, | |
fieldnames=["Date (MM/DD/YYYY)","Category","Amount","Note"],quotechar='"') |
[][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]][([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]]+[])[+[[!+[]+!+[]+!+[]]]]+([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]]]+([][[]]+[])[+[[+!+[]]]]+(![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[+!+[]]]]+([][[]]+[])[+[[+[]]]]+([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[ |
//http://blog.kevburnsjr.com/javascript-asynchronous-rsa-key-generation | |
//http://kjur.github.io/jsrsasign/api/symbols/RSAKey.html | |
function xeroTest() { | |
var oauth_nonce = createGuid(); | |
var oauth_timestamp = (new Date().valueOf()/1000).toFixed(0); | |
var signatureBase = "GET" + "&" | |
+ encodeURIComponent("https://api.xero.com/api.xro/2.0/Organisation") + "&" | |
+ encodeURIComponent("oauth_consumer_key=" + UserProperties.getProperty("consumerKey") + "&oauth_nonce="+oauth_nonce+"&oauth_signature_method=RSA-SHA1&oauth_timestamp="+oauth_timestamp+"&oauth_token=" + UserProperties.getProperty("consumerKey") + "&oauth_version=1.0"); |
private static void assertEqualsJson(String expectedJson,String actualJson){ | |
final ObjectMapper objectMapper = new ObjectMapper(); | |
Map<String,Object> expected = null,actual = null; | |
try { | |
expected = objectMapper.readValue(expectedJson, new TypeReference<Map<String, Object>>() {}); | |
actual = objectMapper.readValue(actualJson, new TypeReference<Map<String, Object>>() {}); | |
} catch (IOException e) { | |
e.printStackTrace(); |
#!/bin/bash | |
while true | |
do | |
inotifywait . -e modify -r | |
wait | |
now=$(date +"%T") | |
wait | |
#!/bin/bash | |
while true | |
do | |
now=$(date +"%T") | |
wait | |
notify-send "Pre-execute $now"; | |
wait |
Ever wanted an api to access the various information about transportation options in chennai ? Well this is it. | |
This project does the heavy lifting so you don't have to . It also makes me look cool because its written clojure. | |
The project is available at https://github.com/gautamk/mtc-scraper |
#!/usr/bin/env python | |
import sys,urllib2,json | |
data={} | |
raw_data = "raw_data" | |
parsed_data = "parsed_data" | |
file_names = "file_names" | |
def exit(): | |
sys.exit("----") |