Skip to content

Instantly share code, notes, and snippets.

View johnswanson's full-sized avatar

John Swanson johnswanson

View GitHub Profile
version: 2
jobs:
build:
docker:
- image: ubuntu:latest
steps:
- run:
command: |
s3cmd --access_key ${FOO_BAR} \
--secret_key ${BIN_BAZ} \
version: 2.1
jobs:
build:
parameters:
access-key:
type: env_var_name
default: AWS_ACCESS_KEY
secret-key:
type: env_var_name
default: AWS_SECRET_KEY

Keybase proof

I hereby claim:

  • I am johnswanson on github.
  • I am johnswanson (https://keybase.io/johnswanson) on keybase.
  • I have a public key ASDojcpAgacACfZo49vAqeWABI7KOZSOTwZ37aY9y7D4YQo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am johnswanson on github.
* I am johnswanson (https://keybase.io/johnswanson) on keybase.
* I have a public key ASDojcpAgacACfZo49vAqeWABI7KOZSOTwZ37aY9y7D4YQo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am johnswanson on github.
  • I am jds02006 (https://keybase.io/jds02006) on keybase.
  • I have a public key ASDNMSUN3SIXKBCAtkrdcjO9fI9AMR4b4ToVo9VMDJUWQwo

To claim this, I am signing this object:

let blacklists = ["https://mail.google.com/*", "*://mail.google.com/*", "@https://mail.google.com/mail/*"]
Installation
· If you have ruby installed:
gem install gist
· If you're using Bundler:
source :rubygems gem 'gist'
· For OS X, gist lives in Homebrew
@johnswanson
johnswanson / keybase.md
Created February 25, 2015 20:27
Keybase

Keybase proof

I hereby claim:

  • I am johnswanson on github.
  • I am jds02006 (https://keybase.io/jds02006) on keybase.
  • I have a public key whose fingerprint is 6B7F E42B 7933 3E6F 2D75 E9A7 5C66 3FDC 7276 2D7A

To claim this, I am signing this object:

Experimental Generation of Interpersonal Closeness

Instructions to Subjects Included With Task Slips Packet

This is a study of interpersonal closeness, and your task, which we think will be quite enjoyable, is simply to get close to your partner. We believe that the best way for you to get close to your partner is for you to share with them and for them to share with you. Of course, when we advise you about getting close to your partner, we are giving advice regarding your behavior in this demonstration only, we are not advising you about your behavior outside of this demonstration.

In order to help you get close we've arranged for the two of you to engage in a kind of sharing game. You're sharing time will be for about one hour, after which time we ask you to fill out a questionnaire concerning your experience of getting close to your partner.

You have been given three sets of slips. Each slip has a question or a task written on it. As soon as you both finish reading these instructions, you should

(require '[clojure.core.async :as async])
(def c (async/to-chan (range 10)))
(async/<!! (async/filter< even? c)) ;; => 0
(async/<!! (async/filter< even? c)) ;; => 4
(async/<!! (async/filter< even? c)) ;; => 8
(let [c (async/to-chan (range 10)) evens (async/filter< even? c) odds (async/filter< odd? c)]
(printf "first even: %d\nsecond even: %d\n" (async/<!! evens) (async/<!! evens))
(printf "first odd: %d\nsecond odd: %d\n" (async/<!! odds) (async/<!! odds))