All processes in ZSH/Bash under job control are in 3 states: foregrounded, backgrounded and suspended.
# run command in the foreground
command
# run commend in the background
source ~/.git-completion.sh | |
alias gco='git co' | |
alias gci='git ci' | |
require 'open-uri' | |
# url dsl -- the ultimate url dsl! | |
# | |
# You just can't beat this: | |
# | |
# $ irb -r url_dsl | |
# >> include URLDSL | |
# => Object | |
# >> http://github.com/defunkt.json |
// non-id/name attributes are interpreted as cdata | |
// per: http://www.w3.org/TR/html4/types.html#type-cdata | |
var s = "<p title=\"<script>alert('TEST')</script>\">testing 123</p>"; | |
document.body.innerHTML = s; | |
document.getElementsByTagName('p')[0].getAttribute('title'); | |
// => "<script>alert('TEST')</script>" | |
document.getElementsByTagName('p')[0].title; | |
// => "<script>alert('TEST')</script>" |
### | |
Module dependencies | |
### | |
require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
express = require 'express' | |
app = module.exports = express.createServer() | |
RedisStore = require 'connect-redis' |