Skip to content

Instantly share code, notes, and snippets.

@ctaloi
ctaloi / foo.log
Created June 10, 2013 16:11 — forked from ibeex/foo.log
A warning occurred (42 apples)
An error occurred

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discussions around concrete examples, not handy-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

"""
Copyright (c) 2009, Aaron Bycoffe
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
@ctaloi
ctaloi / DropboxSync.py
Created November 27, 2012 19:31 — forked from wrenoud/DropboxSync.py
DropboxSync
import os
import sys
import pickle
import console
# I moved 'dropboxlogin' into a sub folder so it doesn't clutter my main folder
sys.path += [os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lib')]
import dropboxlogin # this code can be found here https://gist.github.com/4034526
STATE_FILE = '.dropbox_state'
@ctaloi
ctaloi / gist:4156185
Created November 27, 2012 18:48 — forked from fcrespo82/gist:4137305
Script to sync Pythonista App to Dropbox
import webbrowser, os, pprint
# Include the Dropbox SDK libraries
#from dropbox import client, rest, session
import dropbox
# Configuration
TOKEN_FILENAME = 'PythonistaDropbox.token'
# Get your app key and secret from the Dropbox developer website
APP_KEY = '<your dropbox app_key>'
APP_SECRET = '<your dropbox app_secret>'
import Growl
def growlAlert(self, type, eventclass, device):
"""
<type> = "New Alert" or "Clear"
<eventclass> (i.e. /Status/IpService)
<device> (i.e. server1.domain.com)
"""
name = "ZenWatch"
@ctaloi
ctaloi / pushover.sh
Created November 14, 2012 03:38 — forked from milligramme/pushover.sh
pushover commandline sample
curl -s \
-F "token=abc123" \
-F "user=user123" \
-F "message=hello world" \
https://api.pushover.net/1/messages
@ctaloi
ctaloi / generate_personal_podcast.rb
Created July 30, 2012 19:35 — forked from kelan/generate_personal_podcast.rb
A script for generating a personal podcast feed from mp3 files in a public Dropbox folder.
#!/usr/bin/env ruby -wKU
#
# by Kelan Champagne
# http://yeahrightkeller.com
#
# A script to generate a personal podcast feed, hosted on Dropbox
#
# Inspired by http://hints.macworld.com/article.php?story=20100421153627718
#
# Simply put this, and some .mp3 or .m4a files in a sub-dir under your Dropbox
<html>
<head>
<script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script src="http://s.phono.com/releases/0.1/jquery.phono.js"></script>
</head>
<body>
<input id="call" type="button" disabled="true" value="Loading..." />
<div id="pickup" style="display:none"><input id="pickup" type="button" value="pickup" /></div>
<div id="hangup" style="display:none"><input id="hangup" type="button" value="hangup" /></div>
@ctaloi
ctaloi / gist:3012436
Created June 28, 2012 16:46 — forked from chrismatthieu/gist:964578
Phono Autodial on Page Load
<html>
<head>
<script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script src="http://s.phono.com/releases/0.2/jquery.phono.js"></script>
<script>
$(document).ready(function(){
var phono = $.phono({
apiKey: "api goes here",
onReady: function() {