Skip to content

Instantly share code, notes, and snippets.

View motoishmz's full-sized avatar

Motoi Shimizu motoishmz

View GitHub Profile
@motoishmz
motoishmz / gist:4077383
Created November 15, 2012 08:28
public test
etst
//
// ListViewController.m
// TableVIewPrac5
//
// Created by 山田 慶 on 2012/11/12.
// Copyright (c) 2012年 山田 慶. All rights reserved.
//
#import "ListViewController.h"
@motoishmz
motoishmz / main.js
Last active December 15, 2015 06:19 — forked from kenjiSpecial/main.js
// to be binded.....
var fnTouchStart = function(e) { console.log("hello i am touch start"); };
var fnTouchMove = function(e) { console.log("hello i am touch move"); };
var fnTouchEnd = function(e) { console.log("hello i am touch end"); };
var fnMouseDown = function(e) { console.log("hello i am mouse down"); };
var fnMouseMove = function(e) { console.log("hello i am mouse move"); };
var fnMouseUp = function(e) { console.log("hello i am mouse up"); };
// register.....
(function()
@motoishmz
motoishmz / iPhoto-salvage.maxpat
Created March 21, 2013 18:25
dependencies: aka.shell, aka.keyboards from http://www.iamas.ac.jp/~aka/max/
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 6,
"minor" : 1,
"revision" : 0,
"architecture" : "x86"
}
,
# ------------------------
# Xcode
# ------------------------
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
Array.prototype.shuffle = function()
{
var i = this.length;
while (i)
{
var j = Math.floor(Math.random() * i);
var t = this[--i];
this[i] = this[j];
this[j] = t;
}
@motoishmz
motoishmz / license_insert.rb
Created April 17, 2013 15:26
まとめてライセンス文をつっこむ用(拡張子チェックは適当に) この例文だとApache 2.0
require 'find'
your_name = "My Name"
project_name = "My Project Name"
license_txt = <<EOF
//
// Copyright 2013 #{your_name}
//
// Licensed under the Apache License, Version 2.0 (the "License");
import os
import subprocess
basedir = os.path.abspath('.')
def check(path):
print path
os.chdir(path)
cmd = 'xcodebuild'
subprocess.check_call(cmd, shell=True)
require 'fileutils'
require 'find'
release_files_path =
"My_Project_Name"
sources = [
"../addons",
"../apps",
# git-ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
.DS_Store
*.o
*.lo
*.Plo