Skip to content

Instantly share code, notes, and snippets.

nitinthewiz /
Created Jan 6, 2016 — forked from dbreunig/
A description of the data written to the Reporter App Dropbox save folder.

#Reporter Save File Schema

##The Reporter Export File

Reporter saves to your Dropbox account with plaintext JSON files, one for each day. When a Report is entered in the app a file is created for that day if it does not exist. Otherwise, the report is appended to the existing file. The save folder is located in 'Dropbox/Apps/Reporter-App/'.

Reporter save files are named according to the following convention:

nitinthewiz / 0_reuse_code.js
Created Dec 3, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
nitinthewiz / gist:6167179
Created Aug 6, 2013
liveblog mobile view
View gist:6167179
function current_user_canada() {
$curr_user = wp_get_current_user();
return $curr_user;
$message = "";
$status = "";
foreach($_GET as $key => $value) {
$message = $value;
nitinthewiz / Treeview Cleanse
Last active Dec 20, 2015
TamperMonkey script to stop Buffer, IFTTT, PourOver, Twitterfeed and dlvrit posts from showing up in treeview. Install Tampermonkey in Chrome or Greasemonkey in FF (not tested, should work) and then add this script.
View Treeview Cleanse
// ==UserScript==
// @name Treeview cleanse
// @version 0.1.4
// @namespace
// @author nitinkhanna
// @run-at document-end
// @include *treeview*
// @require
// ==/UserScript==
nitinthewiz / gist:6124115
Last active Dec 20, 2015 Everywhere. This script will tell every website that you've come from It's a good way to spread the word about ADN. Install TamperMonkey on Chrome and add this script.
View gist:6124115
// ==UserScript==
// @name Everywhere
// @namespace
// @description Tells all websites about a UTM campaign called
// @match http://*/*
// @match https://*/*
// @exclude http://*treeview*
// @exclude https://**
// @grant none
// @run-at document-start
nitinthewiz / gist:5217917
Created Mar 21, 2013
A quick and beautiful writing platform in your browser. Save the code as a bookmark.
View gist:5217917
data:text/html, <body contenteditable style="font-size:2rem;line-height:1.4;max-width:60rem;margin:0 auto;padding:4rem;">

So yesterday brought the sad news that Google Reader is being killed off. C’est la vie it seems, given it was a Google product. In my search for an alternative I rediscovered Fever and decided to see if I could run it up for free on Heroku. Onwards...

Personally I think the news about Reeder is quite sad, as I would quite happily have paid for it as a service. In fact I like RSS so much that I actually shelled out the $30 for Fever when it first came out years ago (I was also pretty massive Shaun Inman fanboy if I’m being honest).

I ended up setting Fever aside because screw having to manage self-hosting for PHP and MySQL, right?

If you’re new to Fever I recommend going and checking it out, but also reading the post in response to the Google Reader announcement by Fevers author, Shaun, for a good list of what Fever is and isn’t.

Enough jibba-jabba!

View ls.php
due to the open_basedir restriction, $tgtPath must be something like the following path param:
http://<your domain>
to discover what are the allowed paths, try supplying any path, e.g. '/' then view the error logs via:
af logs <your app name>
nitinthewiz / st-anti-string-search.txt
Created Dec 15, 2015
Finding text without a particular string in Sublime text
View st-anti-string-search.txt
Sublime Text uses PCRE which is Perl Regex.
The following RegEx -
will match
<? blah ?>
View Daily
import webbrowser
import urllib
dayone_url = "dayone://post?entry="
feeling_question = "How do you feel today?"
achievement_question = "What are you trying to achieve today?"
thought_question = "Is there a negative thought or positive on your mind you want to get out?"
tag = "#diary"
# input