Skip to content

Instantly share code, notes, and snippets.

View pnw's full-sized avatar

Patrick Walsh pnw

View GitHub Profile
@pnw
pnw / gist:eec67c1a3868acf838f5
Created March 22, 2015 20:44
Script to automatically unpack Civ 5 mods on Macs
"""
Simply automates the process of converting the raw steam downloads into unzipped directories.
See: http://forums.civfanatics.com/showthread.php?t=477763
Requirements: p7zip
Installing p7zip: http://superuser.com/questions/548349/how-can-i-install-7zip-so-i-can-run-it-from-terminal-on-os-x
@pnw
pnw / controllers.application.js
Last active October 19, 2016 06:42
Ember Concurrency Queue
import Ember from 'ember'
import {task, timeout} from 'ember-concurrency'
const { get, set, inject } = Ember
export default Ember.Controller.extend({
queueService: inject.service(),
init () {
this._super(...arguments)
@pnw
pnw / components.my-component.js
Last active October 19, 2016 06:42
New Twiddle
import Ember from 'ember'
import {task, timeout} from 'ember-concurrency'
export default Ember.Component.extend({
someTask: task(function * (id) {
this.sendAction('log', 'start', id)
yield timeout(2000)
this.sendAction('log', 'done', id)
}).drop()
})

Keybase proof

I hereby claim:

  • I am pnw on github.
  • I am patch (https://keybase.io/patch) on keybase.
  • I have a public key ASAsxQHVC7HfEH5CQZIQ-GvYZINMcrkelC07858lx4bjIgo

To claim this, I am signing this object: