- A good understanding of Java
- Basic working knowledge of android (at least a Hello World program)
- Eclipse 3.6+ (recommended eclipse 4.2 Juno)
- Android ADT plugin 15+ (recommended ADT 20)
- Android SDK for Gingerbread (API Level 9)
#!/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("----") |
#!/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("----") |
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 |
#!/bin/bash | |
while true | |
do | |
now=$(date +"%T") | |
wait | |
notify-send "Pre-execute $now"; | |
wait |
#!/bin/bash | |
while true | |
do | |
inotifywait . -e modify -r | |
wait | |
now=$(date +"%T") | |
wait | |
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(); |
//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"); |
[][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]][([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]]+[])[+[[!+[]+!+[]+!+[]]]]+([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]]]+([][[]]+[])[+[[+!+[]]]]+(![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[+!+[]]]]+([][[]]+[])[+[[+[]]]]+([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+([][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[ |
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='"') |