$ cat app/index.html | pbcopy-
Go to http://html2jade.com/ and paste clipboard contents
-
Or try http://html2jade.aaron-powell.com/ instead if offline
-
Convert to jade and copy result
$ cat app/index.html | pbcopyGo to http://html2jade.com/ and paste clipboard contents
Or try http://html2jade.aaron-powell.com/ instead if offline
Convert to jade and copy result
| #!/usr/bin/env bash | |
| usage() { | |
| cat <<EOD | |
| Usage: | |
| pomodoro [minutes] Start a pomodoro, defaults to 25 minutes | |
| EOD | |
| } | |
| case "$1" in |
| #!/usr/bin/env ruby | |
| set :tmux, true | |
| before do | |
| %x(~/bin/set-skype-status DND) | |
| %x(say -v albert 'pomodoro started') | |
| end | |
| after do |
| # Related article | |
| # http://robots.thoughtbot.com/accepts-nested-attributes-for-with-has-many-through | |
| # Pluck ids | |
| arr = CompanyEmployment.pluck(:company_id, :company_user_id) | |
| #=> [[1,1], [1,2], [2,1], [2,1]] | |
| # Select duplicates http://stackoverflow.com/a/8922408/2037928 | |
| dups = arr.select {|e| arr.rindex(e) != arr.index(e) }.uniq | |
| #=> [[2,1]] |
ubuntu 12.04 14.04
Reference http://stackoverflow.com/a/18490935/2037928
Login as root
Install needed packages
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-devbrew install node for using NodeJS and packages from npm (Node Package Manager)
npm install uglify-js for combining and minifying of JavaScript
https://www.npmjs.org/package/uglify-js
gem install sass for combining and minifying of CSS
| // Generated on 2013-11-12 using generator-angular 0.5.1 | |
| 'use strict'; | |
| // # Globbing | |
| // for performance reasons we're only matching one level down: | |
| // 'test/spec/{,*/}*.js' | |
| // use this if you want to recursively match all subfolders: | |
| // 'test/spec/**/*.js' | |
| // | |
| var proxySnippet = require('grunt-connect-proxy/lib/utils').proxyRequest; |
| # Infinitely do something, wait half a second between iterations | |
| infdo () { | |
| while true; do | |
| $@ | |
| echo "restarting $@..." | |
| sleep 0.5 | |
| done | |
| } |
# Skapa en fil ~/cronjob.sh
# Testinnehåll för filen, skapar en ny fil varje minut om det fungerar
touch ~/$(date +%%Y%m%d-%H%M)
# Se till att filen är körbar
chmod +x ~/cronjob.sh
# Öppna crontab i en editor