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
#! /bin/bash | |
cd ~ | |
curl "http://www.kyngchaos.com/files/software/frameworks/GDAL_Complete-1.11.dmg" -o "GDAL_Complete-1.11.dmg" | |
hdiutil mount GDAL_Complete-1.11.dmg | |
sudo installer -pkg /Volumes/GDAL\ Complete/NumPy.pkg -target / | |
sudo installer -pkg /Volumes/GDAL\ Complete/GDAL\ Complete.pkg -target / | |
diskutil unmount /Volumes/GDAL\ Complete | |
rm GDAL_Complete-1.11.dmg |
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
// Processing realtime FFT analysis | |
import processing.sound.*; | |
AudioIn input; | |
FFT fft; | |
int bands=512; | |
float[] spectrum = new float[bands]; | |
public void setup() { |
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
import processing.video.*; | |
Capture cam; | |
int[] noise; | |
int ticks = 0; | |
void setup() { | |
size(640, 480); | |
cam = new Capture(this, width, height, 30); |
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
#!/usr/bin/php | |
<?php | |
/* websocket/device server program for raspberry pi | |
* this program only deals with packets that are 125 bytes max | |
* currently only one client can connect at a time. Maybe not a bad thing. | |
* run as super user (for gpio access) | |
* check out https://gist.github.com/BobBurns/6f83930912da4094f014 for the client html code | |
* much of the juicy bits adapted from ghedipunk/PHP-Websockets | |
* |
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
exports.shorthands = | |
{ s : ["--loglevel", "silent"] | |
, d : ["--loglevel", "info"] | |
, dd : ["--loglevel", "verbose"] | |
, ddd : ["--loglevel", "silly"] | |
, noreg : ["--no-registry"] | |
, N : ["--no-registry"] | |
, reg : ["--registry"] | |
, "no-reg" : ["--no-registry"] | |
, silent : ["--loglevel", "silent"] |
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
#!/bin/sh | |
mecab --node-format="%f[7] " | nkf -w --hiragana | sed 's/EOS//g' |
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
NSString *const kCBLocationAtStartupString = @"startup"; | |
// etc ... | |
typedef NS_ENUM(NSString *, CBLocation) { | |
CBLocationAtStartup = kCBLocationAtStartupString, | |
// etc. | |
}; | |
- (void)showInterstitial:(CBLocation)location { | |
NSString *locationString = (NSString *)location |
#neural-style with Cuda7.5 + cuDNN5 in EC2
-
if you want to skip installing nvidia driver and cuda7.5, use this Ubuntu 14 AMI.
https://aws.amazon.com/marketplace/pp/B01EYKBEQ0
(Nvidia Drivers, Cuda 7.5 Toolkit, cuDNN pre-installed with Nvidia Drivers, Cuda 7.5 Toolkit, cuDNN 4, TensorFlow, and Jupyter to leverage Nvidia GRID instances)
g2.2xlarge or better (GPU instance)
Don't forget to make your root partition size bigger. -
In case you want to install everything by yourself
OlderNewer