Install by running the following command in your terminal:
exec 3<&1;bash <&3 <(curl https://gist.githubusercontent.com/jondkinney/2040114/raw/vim.sh 2> /dev/null)
| var http = require("http") | |
| // messages should be relatively short. | |
| var maxLength = 1024 | |
| var server = http.createServer(function (req, res) { | |
| // requests come in as json | |
| // need to parse the json to get from, to, and body fields. | |
| // JSON is probably generated by some native C JSON encoder | |
| // on a device, or in some other language, or perhaps from |
| from PIL import Image, ImageDraw | |
| import argparse | |
| import sys | |
| def get_colors(image_file, numcolors=10, resize=150): | |
| # Resize image to speed up processing | |
| img = Image.open(image_file) | |
| img = img.copy() | |
| img.thumbnail((resize, resize)) |
| .DS_Store | |
| Gemfile.lock | |
| *.pem | |
| node.json | |
| tmp/* | |
| !tmp/.gitignore |
| var table= | |
| ["a:b:c:d:e" | |
| ,"x:y:z:d:w" | |
| ,"1:2:3:4:5"].join("\n") | |
| table.replace(/:([^:]+)$/mg, function (_0, _1) { | |
| console.error(_1) | |
| }) | |
| var lasts = table.split("\n").map(function (line) { |
| <?php | |
| /** | |
| * Example of what a decent Dependency Injection Container should inject to make our life happier | |
| */ | |
| class MyTest { | |
| public function __construct(\Nette\Security\User $user) { // Constructor injection | |
| } | |
| --- | |
| #### | |
| #### THIS IS OLD AND OUTDATED | |
| #### LIKE, ANSIBLE 1.0 OLD. | |
| #### | |
| #### PROBABLY HIT UP https://docs.ansible.com MY DUDES | |
| #### | |
| #### IF IT BREAKS I'M JUST SOME GUY WITH | |
| #### A DOG, OK, SORRY | |
| #### |
| # Thanks to @samsonjs for the cleaned up version: | |
| # https://gist.github.com/samsonjs/4076746 | |
| PREFIX=$HOME | |
| VERSION=1.2.3 | |
| # Install Protocol Buffers | |
| wget http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.bz2 | |
| tar -xf protobuf-2.4.1.tar.bz2 | |
| cd protobuf-2.4.1 |
| This playbook has been removed as it is now very outdated. |