Skip to content

Instantly share code, notes, and snippets.

View plmrry's full-sized avatar
🦆
converting JSON to other JSON

Paul Murray plmrry

🦆
converting JSON to other JSON
View GitHub Profile
@plmrry
plmrry / .block
Last active May 17, 2017 14:15
Collision Radius Transition
license: gpl-3.0
@plmrry
plmrry / .block
Last active May 17, 2017 14:12
Clock
license: mit
@plmrry
plmrry / stupid.ts
Created January 10, 2017 22:59
Stupid stream
class Stream<T> {
constructor(private start: Start<T>) {}
listen(next: Listener<T>) { this.start(next) }
}
class Stream<T> {
constructor(private start: Start<T>) {}
compose<U>(fn: (stream: Stream<T>) => Stream<U>): Stream<U> {
return fn(this);
}
@plmrry
plmrry / docker-compose.yml
Created January 10, 2017 20:15
Basic node/mongo Docker compose file
version: '2.1'
services:
node:
build: .
env_file: .env
working_dir: /usr/src/app
volumes:
- ./:/usr/src/app
depends_on:
- mongo
@plmrry
plmrry / README.md
Last active November 15, 2016 11:49
About Me

Hey there.

My name's Paul, and I'm a software developer and data journalist at the New York Times' Interactive News Desk.

I was previously a student of the Creative Coding Research Group in the Electronic Visualization Lab at the University of Illinois at Chicago. The group, led by Angus Forbes, is engaged in an interdisciplinary mix of visualization research and new media artwork.

@plmrry
plmrry / .gitignore
Last active September 30, 2016 21:16
Sequential Tests with Tape and Bash
node_modules
@plmrry
plmrry / README.md
Last active July 27, 2016 02:49
Streaming Hierarchy

This example demonstrates how to build a nested hierarchy from a streaming datasource.

Groups in the hierarchy are generated and sorted "on demand" as they are pulled from the data$ Observable.

Rx.Observable.groupBy() produces GroupedObservables which are scanned into arrays and then combined using flatMapLatest(Rx.Observable.combineLatest).

(Note: It's important to shareReplay the GroupedObservables)

This example also uses babel-standalone to enable in-browser ES6 features.

@plmrry
plmrry / .block
Last active July 27, 2016 02:48
Force Transition
license: gpl-3.0
@plmrry
plmrry / .block
Last active July 13, 2016 13:06
Babel Standalone Template
license: gpl-3.0
@plmrry
plmrry / README.md
Last active July 7, 2016 15:21
List Order Transitions

To transition an HTML list when it is re-ordered:

  • Create a second "hidden" list where each <li> contains an empty &nbsp; character.
  • Calculate each hidden <li>'s new position (using jQuery).
  • Transition the absolute-ly positioned list elements.

🆒