I hereby claim:
- I am glutnix on github.
- I am glutnix (https://keybase.io/glutnix) on keybase.
- I have a public key whose fingerprint is 847B D53F F668 623E 2852 7775 0F1F C976 14E2 99C8
To claim this, I am signing this object:
| if [ -z "$TMUX" ]; then # not currently in a tmux session | |
| tmux has-session >/dev/null 2>/dev/null | |
| if [ $? = 0 ]; then # previous command exited with status 0 | |
| echo " " | |
| echo "tmux: There are tmux session(s) running." | |
| tmux ls | |
| echo "run 'tmux attach' to re-attach." | |
| fi | |
| fi |
| - Client Side – JavaScript | |
| - <script type="text/javascript">…code here… </script> | |
| - <script type="text/javascript" src="file.js"><!-- no code here --></script> | |
| - statements | |
| - semicolons; | |
| - values and types | |
| - string, number, boolean | |
| - null, undefined, NaN | |
| - var | |
| - operators |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # IMAGEMAGICK | |
| # scale image up using nearest neighbour | |
| # extend canvas larger | |
| # layer 1: clone 0, extract the alpha layer, and contrast it to black and white only, no grey | |
| # layer 2: clone 1, blur clone 0 by 3px, then contrast it | |
| # layer 3: clone 2: fill black with opaque white | |
| # take layer 3, 0, 1, ignoring alpha, composite them over each other. | |
| # delete layers 0,1,3, swap the last two layers, and, ignoring alpha, composite all the layers together copying the alpha layer |
| Route::filter('admin', function() | |
| { | |
| if (Auth::user()->role !== 'admin') return Redirect::to('login'); | |
| }); | |
| Route::filter('albumOwner', function($route, $request) | |
| { | |
| $album = Album::findOrFail($route->getParameter('albums')); | |
| if ( $album->user_id !== Auth::id() && Auth::user()->role !== "admin") { | |
| return Redirect::to('login'); |
| { | |
| "require-dev": { | |
| "squizlabs/php_codesniffer": "2.0.*@dev" | |
| }, | |
| "scripts": { | |
| "post-install-cmd": [ | |
| "bash contrib/setup.sh" | |
| ] | |
| } | |
| } |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |