- Randomly mixes input gathering, error handling, and business logic
- imposes cognitive load on the reader
- no digressions
| var css:String = | |
| "global{ | |
| fontName: Calibri; | |
| fontSize: 26; | |
| } | |
| #font1{ | |
| color: #00FF00; | |
| } | |
| #font1 #special1{ | |
| fontWeight: bold; |
| # note - you may need to split into a before-deploy (stop) and after-deploy (start) depending on your setup | |
| desc "Hot-reload God configuration for the Resque worker" | |
| deploy.task :reload_god_config do | |
| sudo "god stop resque" | |
| sudo "god load #{File.join deploy_to, 'current', 'config', 'resque.god'}" | |
| sudo "god start resque" | |
| end | |
| after 'deploy:update_code', 'deploy:update_shared_symlinks' |
| # 2010-10-01 | |
| # | |
| # Mac OS X 10.6.3 | |
| # Homebrew 0.7 | |
| # Xcode 3.2.4 | |
| # Git 1.7.3.1 | |
| # RVM 1.0.12 | |
| # Ruby 1.8.7, 1.9.2 | |
| # Passenger 2.2.15 | |
| # MySQL 5.1.49 |
| package | |
| { | |
| import flash.display.Sprite; | |
| public class HelloWorld extends Sprite | |
| { | |
| public function HelloWorld() | |
| { | |
| new Foo(); | |
| namespace :deploy do | |
| desc "Hot-reload God configuration for the Resque worker" | |
| task :reload_god_config do | |
| sudo "god stop resque" | |
| sudo "god load #{File.join(deploy_to, 'current', 'config', 'resque-' + rails_env + '.god')}" | |
| sudo "god start resque" | |
| end | |
| end | |
| # append to the bottom: |
| # Simple 16 step drum machine experiment with Node and CoffeeScript | |
| # by Peter Cooper - @peterc | |
| # | |
| # Inspired by Giles Bowkett's screencast at | |
| # http://gilesbowkett.blogspot.com/2012/02/making-music-with-javascript-is-easy.html | |
| # | |
| # Screencast demo of this code at http://www.youtube.com/watch?v=qWKkEaKL6DQ | |
| # | |
| # Required: | |
| # node, npm and coffee-script installed |
| # put this in your .bash_profile | |
| if [ $ITERM_SESSION_ID ]; then | |
| export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND"; | |
| fi | |
| # Piece-by-Piece Explanation: | |
| # the if condition makes sure we only screw with $PROMPT_COMMAND if we're in an iTerm environment | |
| # iTerm happens to give each session a unique $ITERM_SESSION_ID we can use, $ITERM_PROFILE is an option too | |
| # the $PROMPT_COMMAND environment variable is executed every time a command is run | |
| # see: ss64.com/bash/syntax-prompt.html |
I am working on adding support for building and distributing (via PyPI) Python Wheels with C Extensions to the Python wheel and pip packages. The discussion on Distutils-SIG continues, but I believe it is fairly certain that some effort to correctly identify Linux distributions will need to be made. I've begun efforts to add this support to wheel.
If you have a Linux distribution or version of a listed distribution not in this gist, or one of the ones I have not directly verified, I could use the following:
/etc/os-release, if it existsIt's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.