This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'thor' | |
class Ebuild < Thor | |
desc 'all', 'clean, compile and generate edoc for all modules' | |
def all | |
clean | |
compile | |
doc | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% | |
%% Restfulierl, a member of Restfulie initiative. | |
%% | |
%% @author Leandro Silva <leandrodoze@gmail.com> | |
%% @copyright 2009 Leandro Silva. | |
%% | |
%% See more about Restfulie initiative on http://restfulie.caelum.com.br. | |
%% | |
%% @doc start point to use Restfuilerl. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(sample_erlang_bdd). | |
-include_lib("eunit/include/eunit.hrl"). | |
%%--- Spec 1 --------------------------- | |
describe_truth_test_() -> | |
[fun should_be_true/0, | |
fun should_be_false/0]. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSArray+Functional.h | |
// DynamicFeatures | |
// | |
// Created by Leandro Silva on 4/10/10. | |
// Copyright 2010 __MyCompanyName__. All rights reserved. | |
// | |
#import <Cocoa/Cocoa.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# TERMINAL SETTINGS ########################################################### | |
# | |
# Define how Bash prompt looks like | |
export PS1='\n\[\e[0;32m\]\u@\h \[\e[0;33m\]\w \[\e[0;35m\]$(__git_ps1 "(%s)")\n\[\e[0;32m\]\$ \[\e[0;37m\]' | |
# Cli Colors | |
export CLICOLOR=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -x | |
#This script removes Mono from an OS X System. It must be run as root. | |
rm -r /Library/Frameworks/Mono.framework | |
rm -r /Library/Receipts/MonoFramework-* | |
for dir in /usr/bin /usr/share/man/man1 /usr/share/man/man3 /usr/share/man/man5; do | |
(cd ${dir}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Mono from SVN trunk | |
# 1- Get the code | |
$ svn co svn://anonsvn.mono-project.com/source/trunk/mono | |
$ svn co svn://anonsvn.mono-project.com/source/trunk/mcs | |
# 2- Configure the build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems | |
source :rubyforge | |
gem 'sinatra' | |
gem 'sinatra-mongoid', :require => 'sinatra/mongoid' | |
gem 'bson_ext' | |
gem 'activesupport' | |
group :test do | |
gem 'rspec' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svn st | awk '{print $2}' | sudo xargs rm -rf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% @doc Utilities for working with mochijson2 struct. | |
%% | |
%% COPYRIGHT - stickyNotes sample application by beepbeep. | |
%% struct example : | |
%% | |
%% S = {struct, [ | |
%% {<<"name">>, <<"Foo">>}, | |
%% {<<"activity">>, {struct, [ | |
%% {<<"name">>, <<"Basketball">>} |