Skip to content

Instantly share code, notes, and snippets.

View jonmadison's full-sized avatar

jon madison jonmadison

View GitHub Profile
@koenbok
koenbok / CustomDevide.coffee
Created October 20, 2014 09:34
Custom Framer Device
Framer.Device.Devices["my-device"] =
name: "My Device"
deviceType: "mobile"
deviceImage: "my-device.png"
deviceImageWidth: 472
deviceImageHeight: 806
screenWidth: 320
screenHeight: 400
@rkeblitis
rkeblitis / CGLA.md
Created June 16, 2014 03:23
Cave Gnome Logic Assessment

Cave Gnome Logic Assessment

A group of cave gnomes, while in a dark cave, have their foreheads painted red or blue. They cannot see the color of their own foreheads, or anything else while they are in the cave. The gnomes are asked to exit the cave one by one and automatically sort themselves by color without communicating in any way after they leave the cave (verbal or non-verbal).

1. How did they do this?

The best way to achieve the solution is to have the gnomes form a line when they exit the cave. The order of the first two gnomes is irrelevant because they must stand next to each other regardless of their color. It is the third and then each sequential gnome that will be responsible for sorting. As the third gnome emerges from the cave, the colors of the previous two gnomes will be in one of the following possible combinations: rr, bb, or rb or br. If the first two gnomes are the same color, it wouldn't matter which gnome the third gnome decides to stand next to because they would be sorted

@t-io
t-io / osx_install.sh
Last active January 5, 2026 06:12
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"