Skip to content

Instantly share code, notes, and snippets.

@voluntas
voluntas / mqtt_meetup_tokyo_201408.rst
Last active August 29, 2015 14:02
MQTT Meetup Tokyo 2014.08

MQTT Meetup Tokyo 2014.08

概要

内容

@jczaplew
jczaplew / qgis.sh
Last active August 29, 2015 14:04
Install QGIS OS X
#! /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
@tado
tado / realtime_fft.pde
Last active August 29, 2015 14:11
Realtime FFT Analysis for Processing
// Processing realtime FFT analysis
import processing.sound.*;
AudioIn input;
FFT fft;
int bands=512;
float[] spectrum = new float[bands];
public void setup() {
@fukuchi
fukuchi / gist:b1f80fca3b61949a8661
Created January 26, 2015 08:41
pseudo translation
import processing.video.*;
Capture cam;
int[] noise;
int ticks = 0;
void setup() {
size(640, 480);
cam = new Capture(this, width, height, 30);
@BobBurns
BobBurns / wsds.php
Last active August 29, 2015 14:17
php websocket device server
#!/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
*
anonymous
anonymous / npm-config-shorthands.js
Created July 18, 2015 21:35
NPM Config Shorthands
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"]
@phelrine
phelrine / hirakana.sh
Created August 30, 2011 18:01
漢字ひらがな変換
#!/bin/sh
mecab --node-format="%f[7] " | nkf -w --hiragana | sed 's/EOS//g'
@kballenegger
kballenegger / string-enums.m
Last active February 19, 2016 05:47
Strings as enum values
NSString *const kCBLocationAtStartupString = @"startup";
// etc ...
typedef NS_ENUM(NSString *, CBLocation) {
CBLocationAtStartup = kCBLocationAtStartupString,
// etc.
};
- (void)showInterstitial:(CBLocation)location {
NSString *locationString = (NSString *)location
@daitomanabe
daitomanabe / neural-style-gpu-in-ec2.markdown
Last active June 1, 2016 00:57
easy set up for neural-stlye with Cuda7.5 + cuDNN5 in EC2

#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