I hereby claim:
- I am leigh-johnson on github.
- I am grepleigh (https://keybase.io/grepleigh) on keybase.
- I have a public key ASDihIe0IMy0QLJutA7tM_MJL3NNUiN8XUpZl-bk1QZZ9Qo
To claim this, I am signing this object:
| desc "Begin a new post in #{source_dir}/#{posts_dir}" | |
| task :new_post, :title do |t, args| | |
| if args.title | |
| title = args.title | |
| else | |
| title = get_stdin("Enter a title for your post: ") | |
| end | |
| raise "### You haven't set anything up yet. First run `rake install` to set up an Octopress theme." unless File.directory?(source_dir) | |
| mkdir_p "#{source_dir}/#{posts_dir}" | |
| filename = "#{source_dir}/#{posts_dir}/#{Time.now.strftime('%Y-%m-%d')}-#{title.to_url}.#{new_post_ext}" |
| //add to game init | |
| $(window).resize(function() { window.resizeGame(); } ); | |
| //add this function to main.js | |
| function resizeGame() { | |
| var height = $(window).height(); | |
| var width = $(window).width(); | |
| import os | |
| import csv | |
| import itertools | |
| import re | |
| _PATH = '' | |
| export_headers = ( | |
| 'Home Phone', | |
| 'Street Address', |
| // store current layer of active document | |
| var activeLayer = app.activeDocument.activeLayer; | |
| function toggleAll(layer) { | |
| // determine state | |
| split = (layer.name).split(' '); | |
| if ('*working*' in split){ | |
| // recover the mode from *working* layer name | |
| layer.blendMode = BlendMode[split[-1]]; |
| def returnOddIntsEvenIndex(a): | |
| for i in range(a): | |
| if x % 2 > 0: | |
| # index is odd, test type, return if odd | |
| if isinstance(a[i], int): | |
| yield a[i] | |
| else: | |
| # index is even, return always | |
| yield a[i] |
| _ | |
| /~_) /' | |
| ~-/'-~ /' | |
| /' ____ O ____ /'__ | |
| /' /' ) /' /' ) /' ) | |
| /~\,' _ /(___,/' /' /' /' /' /' | |
| (,/'`\____)(________(__(___,/(__/' /(__ | |
| /' |
I hereby claim:
To claim this, I am signing this object:
| // Remember: With great power comes great responsibility | |
| /* Runtime Hooks */ | |
| // Run patcher fn before the original function invocation | |
| // aArgs - array / node list of arguments | |
| function before(fn){ | |
| return function(original){ | |
| fn.apply(this, aArgs) | |
| return original.apply(this, aArgs) |
| // === Arrays | |
| var [a, b] = [1, 2]; | |
| console.log(a, b); | |
| //=> 1 2 | |
| // Use from functions, only select from pattern | |
| var foo = () => [1, 2, 3]; |