Skip to content

Instantly share code, notes, and snippets.

@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 list.html
Yaron Schoen
http://yaronschoen.com/
http://www.yaronschoen.com/site/atom/
Oli Studholme
http://oli.jp/
http://oli.jp/articles.atom
Ben Bleikamp
http://www.bleikamp.com
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')) {
View Daily Diary.py
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
View ls.php
<?php
/*
due to the open_basedir restriction, $tgtPath must be something like the following path param:
http://<your domain>.aws.af.cm/ls.php?path=/var/vcap.local/dea/apps/f-0-21341234123412abcdefgc75cc0f96b9/app/
to discover what are the allowed paths, try supplying any path, e.g. '/' then view the error logs via:
af logs <your app name>
*/
View 2013-03-16-fever-on-heroku.html.md

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!

@nitinthewiz
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;">