#!/usr/bin/env bash
# Assuming OS X Yosemite 10.10.4
# Install XCode and command line tools
# See https://itunes.apple.com/us/app/xcode/id497799835?mt=12#
# See https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
xcode-select --install
This file contains hidden or 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
| source | target | weight | |
|---|---|---|---|
| 1 | 3 | 5 | |
| 1 | 8 | 3 | |
| 1 | 9 | 3 | |
| 1 | 12 | 3 | |
| 1 | 15 | 2 | |
| 1 | 23 | 3 | |
| 1 | 26 | 2 | |
| 1 | 37 | 2 | |
| 1 | 46 | 2 |
This file contains hidden or 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
| license: gpl-3.0 |
This file contains hidden or 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
| # sources | |
| # http://www.scipy.org/install.html | |
| # http://sohliloquies.blogspot.ru/2015/07/setting-up-deep-dream-google-researchs.html | |
| # https://github.com/BVLC/caffe/wiki/Ubuntu-14.04-VirtualBox-VM | |
| # ~2gb dependencies | |
| mkdir deep-dream && cd deep-dream | |
| sudo apt-get install subversion cmake |
This file contains hidden or 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
| export function AnimateMixinFactory(stateName) { | |
| var animateMixin = { | |
| getInitialState() { | |
| return { | |
| [stateName]: {} | |
| } | |
| } | |
| }; |
This file contains hidden or 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
| echo "Fixing ownership and permissions..." | |
| chmod -R 755 /System/Library/Extensions/* | |
| chown -R root:wheel /System/Library/Extensions/* | |
| chown root:admin / | |
| echo "Rebuilding kext cache..." | |
| kextcache -system-prelinked-kernel | |
| kextcache -system-caches |
Expects one argument the name of the production stack file for Tutum.
(see https://support.tutum.co/support/solutions/articles/5000569899-stacks )
Requires these environment variables to be set
- CLOUDFLARE_DOMAIN - root domain of your app, e.g. example.com
- CLOUDFLARE_KEY - your Cloudflare API key
- CLOUDFLARE_EMAIL - your Cloudflare email address e.g. [email protected]
- PROJECT_NAME - a short name for your project e.g. example
This file contains hidden or 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
| // BEFORE REFACTORING (IMPERATIVE) | |
| var filteredLinks = []; | |
| var weekdayCounts = {}; | |
| // Limit to 4 links per weekday. | |
| // Loop through all links and keep track of | |
| // how many are in each weekday. | |
| widget.links.forEach(function(link) { | |
| var weekday = link.group; | |
| if (weekdayCounts[weekday] === undefined) { | |
| weekdayCounts[weekday] = 0; |
This file contains hidden or 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
| /*global React, flyd, R*/ | |
| (function () { | |
| 'use strict'; | |
| var Player = function (control) { | |
| return function (players) { | |
| var player = {}; | |
| var possibleNewPosition = flyd.stream([control.move], function () { | |
| return (player.position() || 0) + control.move(); | |
| }); | |
| var canMove = flyd.stream([possibleNewPosition], function () { |
