start new:
tmux
start new with session name:
tmux new -s myname
| /* | |
| SPAN-RESPONSIVE | |
| Create responsive, mobile first gallery-like grids using Susy. | |
| Columns have the same size, only the amount of columns in a row change. | |
| Accepts a single argument as a list. | |
| $example-layouts: 2 30em, 4 50em, 8 60em; |
| To install virtualenv via pip | |
| $ pip3 install virtualenv | |
| Note that virtualenv installs to the python3 directory. For me it's: | |
| $ /usr/local/share/python3/virtualenv | |
| Create a virtualenvs directory to store all virtual environments | |
| $ mkdir somewhere/virtualenvs | |
| Make a new virtual environment with no packages |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/bin/sh | |
| # | |
| # Upload image(s) to imgur.com | |
| # Copyright (C) 2014 Vivien Didelot <vivien@didelot.org> | |
| # Licensed under GPL version 3, see http://www.gnu.org/licenses/gpl.txt | |
| # | |
| # Requires "jshon": | |
| # http://kmkeen.com/jshon/ | |
| # | |
| # Alternatives, which suck: |
| mixin inputText(id, label, val) | |
| div.row | |
| label(for= id)= label | |
| input(type="text", name= id, id= id, value= val,autocomplete="off") | |
| mixin inputPassword(id, label, val) | |
| div.row | |
| label(for= id)= label | |
| input(type="password", name= id, id= id, value= val,autocomplete="off") |
| 'use strict'; | |
| /* | |
| Instructions: | |
| 1 - Should execute 'npm run prepare' | |
| before the very first run, it will install and symlink all dependencies. | |
| 2 - Choose between production 'npm start' and development 'npm run start-dev' modes | |
| (watcher will run immediately after initial run). |
| package main | |
| import ( | |
| "bytes" | |
| "code.google.com/p/go.crypto/openpgp" | |
| "code.google.com/p/go.crypto/openpgp/armor" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| ) |
| package main | |
| import ( | |
| "bytes" | |
| "code.google.com/p/go.crypto/openpgp" | |
| "encoding/base64" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| ) |