(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| import scala.reflect.api._ | |
| import scala.reflect.runtime._ | |
| import scala.reflect.runtime.Mirror._ | |
| object Pimps{ | |
| implicit def pimp(str:String) = new { | |
| def test = println("hello") | |
| } | |
| } |
| var surroundWithOverlay = function(target) { | |
| var $t = $(target), | |
| offsets = $t.offset(), | |
| height = $t.height(), | |
| width = $t.width(), | |
| clearUs = function() { $('.overlayDivs').remove(); }; | |
| $('<div class="overlayDivs">').css({ | |
| /* |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
This gist is an implementation of http://sirile.github.io/2015/05/18/using-haproxy-and-consul-for-dynamic-service-discovery-on-docker.html on top of Docker Machine and Docker Swarm.
| import Relay, { | |
| RootContainer, | |
| Route | |
| } from 'react-relay' | |
| class SeasonRoute extends Route { | |
| static paramDefinitions = {}; | |
| static queries = { | |
| currentSeason: () => Relay.QL`query { currentSeason }`, |
Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).
docker run -it --rm --privileged --pid=host justincormack/nsenter1
more info: https://github.com/justincormack/nsenter1