Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.swig505.redis</string>
<key>Program</key>
<string>/usr/local/redis/redis-server</string>
<key>ProgramArguments</key>
<array>
sinatra --version 1.0
mustache --version 0.10.0
@Lytol
Lytol / ultemplate.rb
Created September 23, 2010 07:02
Rails 3 Application Template
# Rails application template for Rails 3 + Postgres + Git + haml + JQuery + Rspec + Cucumber + Capybara + FactoryGirl
# by Brian Smith <bsmith@swig505.com>
# Create a default README
file "README.md", <<-EOF
#{app_name}
#{"=" * app_name.length}
TODO: description
// Track user clicks on specified links
//
$("a.track").click(function(event) {
var link = $(this).attr("href");
var category = $(this).attr("rel");
if(!category) {
category = "General";
}
#include <stdio.h>
int main() {
int firstInt, secondInt, firstIntFactors[20], secondIntFactors[20];
int firstIntMaxIndex = -1, secondIntMaxIndex = -1;
int commonFactors[20], gcd, factor, i, j;
printf("Two integers: ");
scanf("%d %d", &int_1, &int_2);
require "nokogiri"
doc = Nokogiri.XML(IO.read('products.xml'))
@products = doc.xpath("//products/product").map do |p|
{ :product_id => p.css("product_id").text, :product_url => p.css("product_url").text }
end
!!! 5
%html{:lang => 'en'}
%head
%meta{:charset => 'utf-8'}
%title Application
%link{:href => 'http://yui.yahooapis.com/2.8.1/build/reset/reset-min.css', :rel => 'stylesheet', :type => 'text/css'}
%script{:src => 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js'}
%body
= yield
RegexKit.framework/Headers/RKRegex.h:79:38 Pointer to function type 'NSString *' may not be 'restrict' qualified
// The `define restrict` is there because XCode doesn't want to compile
// RegexKit with the restrict qualifiers.
#define restrict
#import <RegexKit/RegexKit.h>
bsmith bundler (1-0-stable) $ grep -n -r "no-cache" ./
./lib/bundler/cli.rb:139: method_option "no-cache", :type => :boolean, :banner =>
bsmith bundler (1-0-stable) $ grep -n -r "no_cache" ./
bsmith bundler (1-0-stable) $
bsmith bundler (1-0-stable) $ git log --oneline | grep "no-cache"
4601dde Add install option --no-cache to prevent updating the cache.
e4287d2 Add install option --no-cache to prevent updating the cache.
bsmith bundler (1-0-stable) $ git show 4601dde
commit 4601ddeaaddf2671ecc2baa24f49d9e59e7fcfcb
import sbt._
class AlgorithmDesignManualProject(info: ProjectInfo) extends DefaultProject(info) {
val specs = "org.scala-tools.testing" % "specs" % "1.6.2.1" % "test"
}