A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
| ;; MODES | |
| (require 'battery) | |
| (setq battery-mode-line-format "#%b %p %t") | |
| (setq battery-load-critical 7) | |
| (setq battery-load-low 25) | |
| (display-battery-mode t) | |
| (require 'network-speed) | |
| (setq network-speed-update-interval 5) |
| # Copyright (c) 2012 Swaroop SM <[email protected]> | |
| # This program is free: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| # GNU General Public License for more details. |
| #!/usr/bin/python | |
| ############################################################################### | |
| # Produce a collage (grid) of friend profile images from Facebook. | |
| # Inspired by Vipin "swvist" Nair @ https://gist.github.com/2692786 | |
| ############################################################################### | |
| # Copyright (c) 2012 Madzen | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal |
| ARCHIVE_DIR=/home/noufal/projects/emacsmovies.org/videos | |
| all: generate archive | |
| upload: generate | |
| curl --location --header "authorization: LOW xxxx:yyyy" --upload-file ./${number}-episode-${name}.webm http://s3.us.archive.org/EmacsMovies/${number}-episode-${name}.webm | |
| curl --location --header "authorization: LOW xxxx:yyyy" --upload-file ./${number}-episode-${name}.mkv http://s3.us.archive.org/EmacsMovies/${number}-episode-${name}.mkv | |
| archive: ${number}-episode-${name}.webm |
by Jonathan Rochkind, http://bibwild.wordpress.com
Capistrano automates pushing out a new version of your application to a deployment location.
I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".
| #! /bin/sh | |
| d=$(date) | |
| jsdev <test.js >test.dev.js code equal:areEqual -comment "Development Version" -comment "Built: $d" | |
| node test.dev.js |
| var MultiSortCollection = Backbone.Collection.extend({ | |
| /** | |
| * Sort by supplied attributes. First param is sorted first, and | |
| * last param is final subsort | |
| * @param {String} sortAttributes | |
| * @example collection.sortBy("last_name","first_name") | |
| */ | |
| sortBy : function(sortAttributes){ | |
| var attributes = arguments; |
| #!/usr/bin/ruby | |
| require 'rss' | |
| # Usage | |
| # $ ./railscasts.rb http://railscasts.com/subscriptions/YOURRAILSCASTRSS/\/ | |
| # episodes.rss | |
| # OR | |
| # $ ./railscasts.rb | |
| p 'Downloading rss index' |