This file contains hidden or 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
# Check Xcode version | |
require_version="0710" | |
if [[ $XCODE_VERSION_ACTUAL != $require_version ]]; then | |
echo "error: Required Xcode $require_version (current $XCODE_VERSION_ACTUAL) to build ${PRODUCT_NAME}" | |
return -1 | |
fi |
This file contains hidden or 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 | |
mkdir out | |
for f in *.psd | |
do | |
echo ${f/psd/png} | |
# 1.trim | |
# 2.resize with in (512 x 512) | |
# 3 convert to png |
This file contains hidden or 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 | |
# 自動更新OFF | |
echo "Disable : SystemPreferences -> AppStore -> Automatically check for updates" | |
defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool false | |
# 未承認のアプリでも右クリックなく開ける | |
echo "Disable Warning on opening new App." | |
spctl --master-disable |
This file contains hidden or 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
// | |
// ShellCommand.swift | |
// | |
// Created by Koki Ibukuro on 9/19/15. | |
// Copyright © 2015 asus4. All rights reserved. | |
// | |
import Foundation | |
public struct ShellCommand { |
This file contains hidden or 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
# or exclude libs/ folder | |
find src -name "?*.*" ! -regex ".*libs.*" -exec /usr/local/bin/cpplint --filter=-build/header_guard,-runtime/references {} \; |
This file contains hidden or 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
# open localserver | |
adb shell am start -a android.intent.action.VIEW -d http://`ifconfig | grep ".*inet.*broadcast" | awk 'NR == 1 {print $2}'`:8000/ |
This file contains hidden or 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
using UnityEngine; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace AppKit.Extension | |
{ | |
public static class Vector3Extension | |
{ | |
public static Vector3 Average(this IEnumerable<Vector3> source) | |
{ |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
/** | |
Copyright (c) 2017 Koki Ibukuro | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains hidden or 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
using UnityEngine; | |
using System.Collections; | |
namespace Sample | |
{ | |
[RequireComponent(typeof(Collider))] | |
[RequireComponent(typeof(TextMesh))] | |
public class Editable3DText : MonoBehaviour { | |
TextMesh label; |