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
<category term=3D'atom' scheme=3D'http://del.cio.us/tags' label=3D'Atom' /> | |
echo $item['category@term'] | |
==> "atom" | |
echo $item['category@scheme'] | |
==> "http://del.cio.us/tags" | |
echo $item['category@label'] | |
==> "Atom" |
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
# If you use osx terminal/git this includes a couple nice features: | |
# 1) Minimalist colors | |
# 2) Stripped down CLEAN prompt | |
# 3) For GIT folders it will display the current branch. | |
# To install just copy this into the top of your ~/.bash_profile | |
# Based on http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\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
#SWITCHES | |
#-d (cap deploy when check-in finished) | |
#-v (verbose, defaults to quiet) | |
#-m "commit message" (custom commit message) | |
#!/bin/bash | |
## options to be accepted | |
optstr=m:dv ## colon follows options that require an argument | |
while getopts $optstr var | |
do |
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/bash | |
## options to be accepted | |
optstr=m:dv ## colon follows options that require an argument | |
while getopts $optstr var | |
do | |
case $var in | |
v) verbose="-v" ;; | |
d) deploy=1;; | |
m) message=$OPTARG ;; | |
esac |
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
#aliases | |
alias psx="ps -auxw | grep $1" | |
alias ss="script/server" | |
alias sc="script/console" | |
alias sg="script/generate" | |
alias l="ls -FLb" | |
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\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
module Passion | |
module Contact | |
module Timeline | |
# Add universal "columns" to the model | |
def self.included(base) | |
base.send :key, :contact_id, String | |
base.send :key, :timeline_at, Time | |
base.extend ClassMethods | |
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
def placeholder(requiredarg, options = {}) | |
# set default options | |
o = { :class => 'placeholder', :tag => 'p' }.merge(options) | |
... | |
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
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/' | |
} | |
function precmd() { | |
PROMPT="%n@%m %~$(parse_git_branch)%# " | |
} | |
#function parse_git_branch { | |
# git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\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
--THIS------------------------------------------ | |
$(document).ready -> | |
$("a[rel=popover]").popover() | |
--OR THIS--------------------------------------- | |
$ -> | |
$("a[rel=popover]").popover() |
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
Thank you for your interest in the ESB Block. | |
We are currently working to establish distributors in the various regions to get this product into the market. Once these distributor are confirmed and ready for sales, we will be updating our website with their contact detail so you will be able to visit the closest distributor to see our product in person. | |
Right now EBS Block is not yet on sale but please find below an idea of the prices for each of the EBS Block units. | |
We will offer 3 main types of EBS Block model, Standard, Basic and Custom. | |
Price are CIF to port of choice in your country. | |
Shipping and insurance are included however local duties and taxes as well as other cost associated with taking the container to your property is the buyer’s responsibility. | |