Skip to content

Instantly share code, notes, and snippets.

View thejeshgn's full-sized avatar

Thejesh GN thejeshgn

View GitHub Profile
@thejeshgn
thejeshgn / museums.geojson
Last active August 29, 2015 14:12
museums.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thejeshgn
thejeshgn / notes.md
Created February 11, 2015 15:44
MCD Delhi Scraping
@thejeshgn
thejeshgn / base16-monokai-dark.lua
Last active August 29, 2015 14:15
My modified lua theme
-- Monokai theme for Textadept
-- Theme author: Wimer Hazenberg (http://www.monokai.nl)
-- Base16 (https://github.com/chriskempson/base16)
-- Build with Base16 Builder (https://github.com/chriskempson/base16-builder)
-- Original Repository: https://github.com/rgieseke/ta-themes
-- Theme: http://chriskempson.github.io/base16/#monokai
-- Modified Repository: https://gist.github.com/thejeshgn/270de0b8198563539878/
-- Font: http://www.marksimonson.com/fonts/view/anonymous-pro
@thejeshgn
thejeshgn / try_myword.js
Last active August 29, 2015 14:15
trying my work
{
"title": "Try myword",
"authorname": "Thejesh GN",
"when": "Wed, 16 Feb 2015 17:33:52 GMT",
"img": "http://scripting.com/2015/02/11/mom.png",
"subs": [
"<i>Note: This is served from the git.</i>",
"I dont know if this works, lets see."
]
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

cat 'file_name' | python -m json.tool

SL No Cause Gender Age Min Age Max Death count
1 Bankruptcy or Sudden change in Economic Status Male 0 14 3
2 Suspected/Illicit Relation Male 0 14 2
3 Cancellation/Non-Settlement of Marriage Male 0 14 0
4 Barrenness/Impotency (Not having children) Male 0 14 0
5 Illness Male 0 14 123
6 Death of Dear Person Male 0 14 5
7 Dowry Dispute Male 0 14 0
8 Divorce Male 0 14 0
9 Drug Abuse/Addiction Male 0 14 10
@thejeshgn
thejeshgn / codeskulptor_local.py
Created July 21, 2015 08:04
Running CodeSkulptor code locally.
# CodeSkulptor runs Python programs in your browser.
# Click the upper left button to run this simple demo.
# CodeSkulptor runs in Chrome 18+, Firefox 11+, and Safari 6+.
# Some features may work in other browsers, but do not expect
# full functionality. It does NOT run in Internet Explorer.
# 1.[THEJ] Install the module - https://pypi.python.org/pypi/SimpleGUITk/1.1.3
# 2.[THEJ] When running locally import simpleguitk
#import simplegui
javascript:void function(){var e="myCss";if(!document.getElementById(e)){var t=document.getElementsByTagName("head")[0],a=document.createElement("link");a.id=e,a.rel="stylesheet",a.type="text/css",a.href="http://i.thej.in.s3.amazonaws.com/kannada.css",a.media="all",t.appendChild(a)}}();
wifi.setmode(wifi.STATIONAP)
wifi.sta.config("WIFI_SSID","WIFI_PASSWORD")
print(wifi.sta.getip())
srv=net.createServer(net.TCP)
srv:listen(80,function(conn)
conn:on("receive",function(conn,payload)
print(payload)
conn:send("<h1> Hello, I am NodeMCU. I am super cool.</h1>. You can try this at home. Completely safe.")
end)