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
Rails CMS alternatives | |
====================== | |
Active projects: | |
--------------- | |
adva-cms | |
repo: http://github.com/svenfuchs/adva_cms/ | |
site: http://adva-cms.org/ | |
Last update: 11/24/09 | |
"the cutting edge Rails CMS platform" |
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
### Make history behave itself | |
export HISTCONTROL=ignoredups # don't put duplicate lines in history | |
shopt -s histappend # make Bash append rather than overwrite history on disk | |
shopt -s cdspell # Help me get places | |
# write previous line to disk when prompt is displayed | |
export PROMPT_COMMAND='history -a' | |
export HISTFILESIZE=100000000 | |
export HISTSIZE=10000000 |
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
class Array | |
def includes_a?(other_array) | |
self | other_array == self | |
end | |
def includes_b?(other_array) | |
(other_array - self).empty? | |
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
{ | |
:a => 2, | |
# NOTE for partials, you need to include the format | |
# otherwise, it'll fail to find byows/_byow.erb even if byows/_byow.html.erb exists | |
:b => render(:partial => 'example.html') | |
}.to_json |
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
# This method is heavily adapted from the Rails method of determining the subdomain. | |
require 'rubygems' | |
require 'sinatra' | |
helpers do | |
def subdomains(tld_len=1) # we set tld_len to 1, use 2 for co.uk or similar | |
@subdomains ||= if (!request.host.nil? && | |
/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.match(request.host)) | |
request.host.split('.')[0...(1 - tld_len - 2)] | |
else |
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
Informaci贸n del orador: | |
Los interesados en contribuir con conferencias o talleres deben enviar la siguiente informaci贸n: | |
* Autores: Nombre completo y resumen curricular | |
Evan Henshaw-Plath | |
* P煤blico Objetivo: (Gerentes, Desarrolladores, Administradores de Sistemas) | |
Desarrolladores | |
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
Informaci贸n del orador: | |
Los interesados en contribuir con conferencias o talleres deben enviar la siguiente informaci贸n: | |
* Autores: Nombre completo y resumen curricular | |
Evan Henshaw-Plath | |
* P煤blico Objetivo: (Gerentes, Desarrolladores, Administradores de Sistemas) | |
Desarrolladores | |
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
Informaci贸n del orador: | |
Los interesados en contribuir con conferencias o talleres deben enviar la siguiente informaci贸n: | |
* Autores: Nombre completo y resumen curricular | |
Evan Henshaw-Plath | |
* P煤blico Objetivo: (Gerentes, Desarrolladores, Administradores de Sistemas) | |
Gerentes & Desarrolladores | |
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
- Re-size displays | |
- Name computer and drive if not already done | |
- Set Network connection settings (default host 222 for primary system) | |
- Turn on all appropriate Sharing settings | |
- Start processes that will take a while: | |
- Start downloading latest Xcode package | |
- Start Software Update | |
- Start Time Machine's first backup to Time Capsule | |
- Start downloading latest EVE Online client | |
- Create /usr/local/src |
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
Once upon a time a goat travelled happily through a green pasture |
NewerOlder