Skip to content

Instantly share code, notes, and snippets.

View jackprophesy's full-sized avatar

Jack Prophesy jackprophesy

View GitHub Profile
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.
@jackprophesy
jackprophesy / gist:3838395
Created October 5, 2012 06:24
document ready turbolinks
--THIS------------------------------------------
$(document).ready ->
$("a[rel=popover]").popover()
--OR THIS---------------------------------------
$ ->
$("a[rel=popover]").popover()
@jackprophesy
jackprophesy / .bash_profile
Created December 22, 2010 23:16
This is voodoo for git users.
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)/'
def placeholder(requiredarg, options = {})
# set default options
o = { :class => 'placeholder', :tag => 'p' }.merge(options)
...
end
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
#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]/'
#!/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
#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
# 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]/'
}
<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"