Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am nitinthewiz on github.
  • I am nitinkhanna (https://keybase.io/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 http://blog.nitinkhanna.com
// @author nitinkhanna
// @run-at document-end
// @include *facebook*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// ==/UserScript==
View NiKhCo_Books_Bookitics
<?php
// 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 App.net
// (this also sets the token)
View hatchshow.js
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(window).load(function(){
$().hatchShow();
});
jQuery.fn.hatchShow = function(){
$('.hsjs').css('display','inner-block').css('white-space','pre').each(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 http://blog.nitinkhanna.com
// @author nitinkhanna
// @run-at document-end
// @include *devcentral.f5.com*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// ==/UserScript==
@nitinthewiz
nitinthewiz / appnet_widget
Created Oct 5, 2012
The App.net widget for wordpress blogs :)
View appnet_widget
<iframe src="http://appnetizens.com/embed_adn?userid=1538&width=180" width="180" height="260" frameborder="0" scrolling="no"></iframe>
@nitinthewiz
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+'")');
View keyboard.py
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
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
"""
FeverBuddy.py
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
<?php
// DayOne is a nice little journaling app for iOS / Mac (available via App Store).
// This code requires php_class_lib available here: https://github.com/jsjohnst/php_class_lib
include('php_class_lib/classes/parsers/plist/PlistParser.inc');
// grab filenames for all of your journal entries
$entries = array();
if ($handle = opendir('/path/to/your/Journal.dayone/entries')) {