Skip to content

Instantly share code, notes, and snippets.

View giginet's full-sized avatar
🌴
年中On vacation

Kohki Miki giginet

🌴
年中On vacation
View GitHub Profile
@giginet
giginet / Brewfile
Last active January 14, 2016 12:51
update
tap phinze/cask || true
install brew-cask
install lua
install zsh
install vim --with-lua
install autojump
install tmux
@giginet
giginet / concat.py
Created December 14, 2013 19:34
ゲーム用のタイルマップを繋ぐスニペット
# -*- coding: utf-8 -*-
#
# concat.py
# created by giginet on 2013/11/06
#
import os
import math
from PIL import Image
if __name__ == '__main__':
@giginet
giginet / subset.py
Last active December 25, 2015 13:49
import itertools
print "Please input number of set"
n = raw_input()
n = int(n)
for flags in itertools.product([0, 1], repeat=n):
subset = [number + 1 for f, number in zip(flags, range(n)) if f == 1]
print subset
require 'tmpdir'
PROJECT = 'AutomationTestDemo.xcodeproj'
CONFIGURATION = 'DEBUG'
APP_NAME = 'AutomationTestDemo.app'
TMP_DIR = 'tmp'
SPECS_DIR = 'specs/javascript'
BUILD_DIR = 'build'
task :default => [:clean, :build, :automation]
@giginet
giginet / OuyaController.cpp
Last active December 19, 2015 10:19
OUYA Development Kit (OuyaController) Wrapper for C++
/*
* OuyaController.cpp
*
* Created on: Jul 6, 2013
* Author: giginet
*/
#include "OuyaController.h"
#include "platform/android/jni/JniHelper.h"
# -*- coding: utf-8 -*-
#
# icon-generator.py
# created by giginet on 2013/04/15
#
import sys
import os
from PIL import Image
FILES = (
function concat(...)
local args = { ... }
local result = {}
for i, t in ipairs(args) do
for j, elem in ipairs(t) do
table.insert(result, elem)
end
end
return result
end
# -*- coding: utf-8 -*-
#
# icon-generator.py
# created by giginet on 2013/04/15
#
import sys
import os
from PIL import Image
FILES = (
@giginet
giginet / TestFlightWrapper.h
Last active December 16, 2015 04:39
TestFlight SDK Wrapper for C++ https://testflightapp.com/sdk/
//
// TestFlightWrapper.h
// TestFlightWrapper
//
// Created by giginet on 2013/4/9.
//
//
#ifndef __VOXCHRONICLE__TestFlightWrapper__
#define __VOXCHRONICLE__TestFlightWrapper__
@giginet
giginet / snp.py
Last active December 14, 2015 11:59
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# snp.py
# created by giginet on 2013/03/04
#
import sys
import os
import ConfigParser
from simplenote import Simplenote