A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
class NestedAttributesForStrategy | |
def association(runner) | |
runner.run | |
end | |
def result(evaluation) | |
evaluation.object.tap do |instance| | |
evaluation.notify(:after_build, instance) | |
return attributes(instance) | |
end |
#!/bin/sh | |
# Install: | |
# | |
# copy to /usr/local/bin | |
# | |
# Usage: | |
# | |
# git ignore [[pattern] [pattern] [...]] | |
# |
require 'rubygems' | |
require 'html2markdown' | |
first_block = <<END | |
<div id="wikicontent" style="padding:0 3em 1.2em 0"> | |
<p><img src="http://cjcat2266.googlepages.com/Emitterlogo.png"> </p><h1><a name="Emitter_is_now_version_2.1">Emitter is now version 2.1</a><a href="#Emitter_is_now_version_2.1" class="section_anchor">¶</a></h1><p><a href="http://emitter.googlecode.com/svn/trunk/docs/index.html" rel="nofollow">Documentation</a> </p><p><a href="http://cjcat.blogspot.com/2009/06/using-tortoisesvn-to-check-out-files.html" rel="nofollow">How to check out the latest source files from the SVN repository</a> </p><hr><h2><a name="Emitter_Video_Tutorials_are_now_available_on_!!">Emitter Video Tutorials are now available on YouTube!!</a><a href="#Emitter_Video_Tutorials_are_now_available_on_!!" class="section_anchor">¶</a></h2><p><a href="http://www.youtube.com/view_play_list?p=84AC3DE6772538E4" rel="nofollow"><img src="http://www.sabredefence.com/images/youtube_logo.gif"></a> </p><p>Check out the complete playlist <a hr |
// enum.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
#include <cstdio> | |
#include <cstring> | |
#include <windows.h> | |
#include <comcat.h> | |
int _tmain(int argc, _TCHAR* argv[]) |
## | |
# Authentication Plugin via omniauth on Padrino | |
# prereqs: | |
# http://github.com/intridea/omniauth/ | |
# http://github.com/achiu/omniauth/ working fork | |
# | |
module OmniAuthInitializer | |
def self.registered(app) | |
require 'omniauth' | |
Get it from http://developer.apple.com. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.
In XCode's Preferences > Downloads you can install command line tools.
Installation commands:
wget http://redis.googlecode.com/files/redis-2.2.2.tar.gz
tar xvfz redis-2.2.2.tar.gz
cd redis-2.2.2/
mkdir -p /opt/redis
make PREFIX=/opt/redis install
cp redis.conf /opt/redis/redis.conf
sudo useradd redis