Skip to content

Instantly share code, notes, and snippets.

View ianwcarlson's full-sized avatar

Ian Carlson ianwcarlson

  • Albuquerque, NM
View GitHub Profile
@ianwcarlson
ianwcarlson / test.js
Created April 14, 2017 18:20
Reference Comparison Immutable vs. Native
const { Map, List } = require('immutable');
const mapBeforeI = Map({ a: 1, b: List([1, 2]) });
// First let's experiment with an Immutable structure
// Perform set operation, but make the values the same
const mapAfterI = mapBeforeI.set('a', 1);
console.log(mapBeforeI === mapAfterI); // true
// Perform set operation, but make the values different
@ianwcarlson
ianwcarlson / remove_docker_images_by_name.sh
Created May 9, 2016 16:53
Remove Docker Images by Name
docker rmi -f $(docker images --format "{{.ID}} {{.Repository}}" | grep <name to search> | awk ' {print $1} ')