Skip to content

Instantly share code, notes, and snippets.

@pyk
pyk / jade.sublime-build
Last active April 29, 2016 10:58
i have problem sublime build [Errno 2] No such file or directory . then i fix with this code. make sure you install node and jade with npm globally. press cmd + b to convert .jade to html. this build also asume that you place your jade file to directory called jade. the html output will be outside jade folder.
{
"cmd": ["jade", "$file", "-o", "../", "--pretty"],
"selector": "source.jade",
"path": "/usr/local/bin"
}
# path is where your jade executable.
# type in terminal :
# $ which jade
# and change into "path" value into your location.
@pyk
pyk / .gitconfig
Last active December 20, 2015 08:39
my git config
[core]
excludesfile = /Users/bayu/.gitignore
quotepath = false
editor = sublime -n -w
[user]
name = Bayu Aldi Yansyah
email = [email protected]
[mergetool]

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@pyk
pyk / namepace.rb
Last active December 19, 2015 09:49
namespace doesn't use layout engine that set globally!
# configure block
configure do
set :views , "assets"
set :erb , :layout => :"views/layout"
enable :sessions
end
.
.
.