2015-10-21
- jennifer
- martym
| machine: | |
| node: | |
| version: 0.10.40 | |
| pre: | |
| # download if meteor isn't already installed in the cache | |
| - meteor || curl https://install.meteor.com | /bin/sh | |
| post: | |
| - meteor --version | |
| checkout: |
| # Note – this is not a bash script (some of the steps require reboot) | |
| # I named it .sh just so Github does correct syntax highlighting. | |
| # | |
| # This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5 | |
| # | |
| # The CUDA part is mostly based on this excellent blog post: | |
| # http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/ | |
| # Install various packages | |
| sudo apt-get update |
Custom recipe to get OS X 10.11 El Capitan running from scratch with useful applications and Node.js Developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after fresh install.
| // <canvas id="resizeCanvas" width="10000" height="10000" style="display:none"></canvas> | |
| Template.myview.events({ | |
| "change .image-select": function(e, t) { | |
| // Verify it's an image... | |
| console.time("total"); | |
| var img = document.createElement("img"); | |
| img.src = window.URL.createObjectURL(e.currentTarget.files[0]); | |
| img.onload = function () { |
To use this bot:
ads_bot.py and requirements.txt.pip install -r requirements.txt to install the requirements.| require_relative "test_helper" | |
| require "open-uri" | |
| require "net/http" | |
| class EmojiTest < Blog::Test | |
| def test_no_emoji | |
| posts.each do |post| | |
| content = File.read(post) | |
| refute_match /:[a-zA-Z0-9_]+:/, content, |
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| curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
| """CONVENTIONS: | |
| positions are done row-column from the bottom left and are both numbers. This corresponds to the alpha-number system in traditional chess while being computationally useful. they are specified as tuples | |
| """ | |
| import itertools | |
| WHITE = "white" | |
| BLACK = "black" | |