Author: Chris Lattner
This is a simple launchd config that will start your default
docker-machine on startup. You can customize the machine that is started by updating lines 11 and 16 with the correct machine name.
- Copy the file
com.docker.machine.default.plist
below to~/Library/LaunchAgents/com.docker.machine.default.plist
. - Run the following in a terminal:
launchctl load ~/Library/LaunchAgents/com.docker.machine.default.plist
- Profit!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
a simple stop loss bot. | |
adjust STOP_PRICE and STOP_VOLUME to your needs. | |
The file can be reloaded after editing without | |
restarting goxtool by simply pressing the l key. | |
""" | |
import strategy | |
import goxapi | |
# pylint: disable=C0301 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# When I posted the results of the Roman Numeral Calculator kata | |
# earlier this week, I said that I felt that the evolution of the code | |
# through TDD was much more interesting than the final result. Let me | |
# explain. | |
# | |
# First, some background. The goal of this Kata is to produce a | |
# RomanNumeralCalculator object that converts from arabic numbers to | |
# Roman numerals, and from Roman numerals back to arabic. | |
Then { calculate("1").should == "I" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
have_library: checking for magic_open() in -lmagic... -------------------- no | |
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i386-linux -I. -D_FILE_OFFSET_BITS=64 -O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -fPIC conftest.c -L. -L/usr/lib -L. -rdynamic -Wl,-export-dynamic -lruby-static -lmagic -lpthread -ldl -lcrypt -lm -lc" | |
conftest.c: In function 't': | |
conftest.c:3: error: 'magic_open' undeclared (first use in this function) | |
conftest.c:3: error: (Each undeclared identifier is reported only once | |
conftest.c:3: error: for each function it appears in.) | |
checked program was: | |
/* begin */ | |
1: /*top*/ |