Skip to content

Instantly share code, notes, and snippets.

View japboy's full-sized avatar
🏠
WFH

Yu Inao japboy

🏠
WFH
View GitHub Profile
###
# Ricoh Theta 360 event-driven controll implementation on Node.js
# written by @japboy (http://github.com/japboy)
# distributed under the Unlicense (http://unlicense.org/)
#
# Useful information:
# http://mobilehackerz.jp/contents/Review/RICOH_THETA/WiFi_Control
#
# Implementation references:
# https://gist.github.com/kioku-systemk/7710990
@japboy
japboy / wss
Last active August 29, 2015 13:57
Yet another WebSocket broadcasting server.
#!/usr/bin/env node
'use strict';
var ws, wss, specified, prev, host='0.0.0.0', port=8000;
ws = require('ws');
process.argv.forEach(function (val, i) {
@japboy
japboy / calc.js
Last active August 29, 2015 13:57
計算いろいろ。
/**
* calc - Some calculation utilities
*
* Copyright 2014 Yu Inao under the terms of the Unlicense
* license found at http://unlicense.org/
*/
(function (root, factory) {
/* global define, exports, require */
'use strict';
@japboy
japboy / Gruntfile.coffee
Created May 16, 2014 15:57
Grunt task to generate sprite sheets using Spritesheet.js for PIXI.js
module.exports = (grunt) ->
grunt.initConfig
sprite:
common:
files:
'assets/img': 'assets/img/common/*.*'
options:
name: 'common'
@japboy
japboy / .jshintrc
Last active August 29, 2015 14:01
JSHint default configuration
{
"bitwise": false,
"camelcase": false,
"curly": false,
"eqeqeq": true,
"es3": false,
"es5": false,
"esnext": true,
"forin": false,
"freeze": false,
@japboy
japboy / .coffeelintrc
Last active August 29, 2015 14:01
CoffeeLint default configuration
{
"coffeescript_error": {
"level": "error"
},
"arrow_spacing": {
"name": "arrow_spacing",
"level": "ignore"
},
"no_tabs": {
"name": "no_tabs",
/**
* Vendor prefix polyfill for HTML 5 APIs
*/
(function (w, d, n) {
/* jshint maxcomplexity: false */
'use strict';
/**
* Blob
@japboy
japboy / run.sh
Last active August 29, 2015 14:14
A script to launch local servers
#!/bin/bash
CWD=$(pwd)
function ctrl_c () {
#pgrep -f mongod && pkill mongod
pgrep -f mysql && mysql.server stop
cd ${CWD}
unset CWD
@japboy
japboy / map.js
Last active August 29, 2015 14:21
A Map class added lacking methods for Google Maps API
'use strict';
let w = global, d = w.document, n = w.navigator;
let _ = w._, GM = w.google.maps;
/**
* My Map class
* @class
* @extends google.maps.Map
@japboy
japboy / .eslintignore
Last active August 29, 2015 14:21
ESLint default configuration
node_modules