See https://github.com/romainl/vim-rnb for an up-to-date version.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function init() { | |
| // quit if this function has already been called | |
| if (arguments.callee.done) return; | |
| // flag this function so we don't do the same thing twice | |
| arguments.callee.done = true; | |
| // kill the timer | |
| if (_timer) clearInterval(_timer); | |
| // do stuff, call the function you want on the body onload | |
| example(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| STYLE_WEIGHT=5e2 | |
| STYLE_SCALE=1.0 | |
| th neural_style.lua \ | |
| -content_image examples/inputs/hoovertowernight.jpg \ | |
| -style_image starry_night_gigapixel.jpg \ | |
| -style_scale $STYLE_SCALE \ | |
| -print_iter 1 \ | |
| -style_weight $STYLE_WEIGHT \ | |
| -image_size 256 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * simple method to encrypt or decrypt a plain text string | |
| * initialization vector(IV) has to be the same when encrypting and decrypting | |
| * | |
| * @param string $action: can be 'encrypt' or 'decrypt' | |
| * @param string $string: string to encrypt or decrypt | |
| * | |
| * @return string | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Reference: http://stackoverflow.com/questions/7159607 " | |
| import os | |
| import sys | |
| def listdir(path): | |
| """ | |
| recursively walk directory to specified depth | |
| :param path: (str) path to list files from |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Example of how to parse short/long options with 'getopt' | |
| # | |
| OPTS=`getopt -o vhns: --long verbose,dry-run,help,stack-size: -n 'parse-options' -- "$@"` | |
| if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi | |
| echo "$OPTS" |
Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:
Permalink: git.io/vps
| Provider | Type | RAM | Cores | Storage | Transfer | Network | Price |
|---|
How to set up multiple accounts with Mutt E-mail Client
Thanks to this article by Christoph Berg
Directories and files
~/This configuration is no longer updated
OlderNewer