Skip to content

Instantly share code, notes, and snippets.

View thejeshgn's full-sized avatar

Thejesh GN thejeshgn

View GitHub Profile
@thejeshgn
thejeshgn / batchEntoKn.php
Created February 4, 2011 16:20
Transliterating english to Kannada
<?php
/**
Trasliterate method takes 5 , seaparated english words and transliterates them into Kannada,
The result is an array of words in the same order. This uses Non public Google online transliteration API for this.
When you run this method give a 10ms seconds gap between each call to be on the safer side.
By : Thejesh GN http://thejeshgn.com
More: http://thejeshgn.com/2011/02/04/batch-transliterating-names-into-kannada-using-google-api/
@thejeshgn
thejeshgn / index.html
Last active July 5, 2017 16:39
Automatic Google transliterating form elements
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google AJAX Language API - Basic Transliteration</title>
<script type="text/javascript" src="//www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("language", "1");
google.load("elements", "1", { packages: "transliteration" });
@thejeshgn
thejeshgn / gof.html
Created May 6, 2011 10:32
Game of Life with Processing.js
<html>
<HEAD>
<SCRIPT src="./processing-1.1.0.min.js"></SCRIPT>
<SCRIPT src="./init.js"></SCRIPT>
<STYLE type="text/css">
html, body {
background: #EEE;
font-family: PJSMKGS,arial,sans-serif; font-size: 13px;
margin: 0;
padding: 0;
@thejeshgn
thejeshgn / irinnews-photo.html
Created May 9, 2011 10:50
IRIN News - Embeddable Photo Widget
<html>
<body>
<!-- STEP 1: put this div content where you want the picture to appear -->
<!-- start -->
<div id="pictureDiv" width="300px">
<em><span id="pictureHeaderId"></span></em>
<span id="pictureContentId"></span>
@thejeshgn
thejeshgn / blocked
Created July 7, 2012 17:29
Reliance_Netconnect_Bangalore_Block_Unblock_Notresolved_ sat_7_jul_2012
`http://imagessearchyahoo.com
http://imamali8.com
http://rahulyadav.com
http://hinduhumanrights.org
http://nndh.com
http://bloodrovaltriped.com
http://merrimusings.typepad.com
http://thepiratescove.us
http://smeisp.cn
http://clickatell.com
@thejeshgn
thejeshgn / Error resolving
Created July 9, 2012 10:41
tata_communications_bangalore_block_unblock_notresolved_mon_9_july_2012
Error resolving 'imagessearchyahoo.com'errno=110 (if applicable)
Error resolving 'hinduhumanrights.org'errno=110 (if applicable)
Error resolving 'bloodrovaltriped.com'errno=110 (if applicable)
Error resolving 'merrimusings.typepad.com'errno=110 (if applicable)
Error resolving 'thepiratescove.us'errno=110 (if applicable)
Error resolving 'commnicator.clickatell.com'errno=110 (if applicable)
Error resolving 'mackers-world.com'errno=110 (if applicable)
Error resolving 'mypetjawa.mu.nu'errno=110 (if applicable)
Error resolving 'jonnyasp.com'errno=110 (if applicable)
Error resolving 'google0.ingo'errno=110 (if applicable)
*.csv
.cache
@thejeshgn
thejeshgn / singleton.py
Created January 22, 2013 12:30
Python singletomn using the state
class Borg:
__shared_state = {}
def __init__(self):
self.__dict__ = self.__shared_state
# and whatever else you want in your class -- that's all!
@thejeshgn
thejeshgn / example.json
Created June 28, 2013 13:47
example geojson at #ttccamp13
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thejeshgn
thejeshgn / gitnotes.txt
Last active December 20, 2015 04:18
my most imp git commands
#beautiful logs
git log --graph --all --decorate
#show all the commits
git reflog
#reset to particular commit, cleans up the working dir (clears the staged file)
#Resets the index and working tree. Any changes to tracked files in the working tree since <commit> are discarded.
git reset --hard [commit_hash or tag]