start new:
tmux
start new with session name:
tmux new -s myname
Ripped off from adrianshort.org
$ git remote -v
origin https://github.com/hakimel/reveal.js.git (fetch)
origin https://github.com/hakimel/reveal.js.git (push)
""""""""""""""""" full vim | |
set nocompatible " must be the first line | |
set rtp+=$HOME/.vim/bundle/vundle | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
filetype plugin indent on | |
Bundle 'kien/ctrlp.vim' | |
Bundle "MarcWeber/vim-addon-mw-utils" |
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)I wanted to figure out the fastest way to load non-critical CSS so that the impact on initial page drawing is minimal.
TL;DR: Here's the solution I ended up with: https://github.com/filamentgroup/loadCSS/
For async JavaScript file requests, we have the async
attribute to make this easy, but CSS file requests have no similar standard mechanism (at least, none that will still apply the CSS after loading - here are some async CSS loading conditions that do apply when CSS is inapplicable to media: https://gist.github.com/igrigorik/2935269#file-notes-md ).
Seems there are a couple ways to load and apply a CSS file in a non-blocking manner:
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
""" | |
Based on: http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code/ | |
Comments resceived: https://gist.github.com/petrklus/b1f427accdf7438606a6 | |
Original pseudo code: | |
Set Temperature = Temperature \ 100 | |
Calculate Red: | |
If Temperature <= 66 Then |