Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am nitinthewiz on github.
  • I am nitinkhanna ( on keybase.
  • I have a public key whose fingerprint is 72DA D581 79D7 1325 C583 386B 334C 2848 9692 BDE3

To claim this, I am signing this object:

View FB Cleanse
// ==UserScript==
// @name FB Cleanse
// @version 0.1
// @namespace
// @author nitinkhanna
// @run-at document-end
// @include *facebook*
// @require
// ==/UserScript==
View NiKhCo_Books_Bookitics
// echo 'running code';
header('Content-type: text/html; charset=utf-8');
require_once 'AppDotNet.php';
$app = new AppDotNet('','');
// You need an app token to consume the stream, get the token returned by
// (this also sets the token)
View hatchshow.js
<script type="text/javascript" src=""></script>
<script type="text/javascript" charset="utf-8">
jQuery.fn.hatchShow = function(){
var t = $(this);
t.wrap("<span class='hatchshow_temp' style='display:block'>");
var pw = t.parent().width();
View F5 DevCentral Cleanse
// ==UserScript==
// @name DevCentral Cleanse
// @version 0.1.4
// @namespace
// @author nitinkhanna
// @run-at document-end
// @include **
// @require
// ==/UserScript==
nitinthewiz / appnet_widget
Created Oct 5, 2012
The widget for wordpress blogs :)
View appnet_widget
<iframe src="" width="180" height="260" frameborder="0" scrolling="no"></iframe>
nitinthewiz / login
Created Oct 28, 2012 — forked from forrestfrazier/login
log in to web app and return data to be saved in titanium app
View login
//var win = Titanium.UI.currentWindow;
var currentWin = Ti.UI.currentWindow;
// if successful login - save user data to database
function insertRows(dbData) {
// call the database and table
var db = Ti.Database.install('../myapp.sqlite','users');
// call out the info to save then save it
var theData = db.execute('INSERT INTO users (username, email) VALUES("'+name.value+'","'+email.value+'")');
import base64
from scene import *
from PIL import Image
def load_keyboard(retina_display = False):
kb_filename = "keyboard.png"
if retina_display:
kb_filename = "keyboard@2x.png"
kb_image = load_image_file(kb_filename)
if not kb_image:
nitinthewiz / Fever-Pythonista
Last active Dec 10, 2015
A Pythonista script to pull the first 50 items from your First Kindling Group from Fever RSS and display them in a nice format. Also allows for importing to Instapaper app, if you've got it. Original code courtesy Thomas Allen (look for the FeverBuddy git repo). Please note, there is a lot of redundant code here. Please don't worry. Pythonista d…
View Fever-Pythonista
#!/usr/bin/env python
# encoding: utf-8
Created by Thomas Allen on 2010-06-04.
Copyright (c) 2010 __telega.org__. All rights reserved.
FeverBuddy for Pythonista
View Use DayOne Journal data with php
// DayOne is a nice little journaling app for iOS / Mac (available via App Store).
// This code requires php_class_lib available here:
// grab filenames for all of your journal entries
$entries = array();
if ($handle = opendir('/path/to/your/Journal.dayone/entries')) {