This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
| module Jekyll | |
| class Youtube < Liquid::Tag | |
| @width = 640 | |
| @height = 390 | |
| def initialize(name, id, tokens) | |
| super | |
| @id = id | |
| end |
| group :production do | |
| gem 'unicorn' | |
| # Enable gzip compression on heroku, but don't compress images. | |
| gem 'heroku-deflater' | |
| # Heroku injects it if it's not in there already | |
| gem 'rails_12factor' | |
| end |
$ echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list
$ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install postgresql-9.3 postgresql-contrib-9.3you should succesfully installing postgresql 9.3.2 on your machine.
| #!/usr/bin/python -tt | |
| #Didn't you hear? The bird is the word! | |
| #@version: 0.1 | |
| import sys | |
| def main(filename): | |
| f = open(filename, "r") | |
| f2 = open("log.txt", "w") | |
| count = 0 | |
| for line in f: |