This file contains 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
#pragma strict | |
var bulletPrefab : GameObject; | |
var initialVelocity : float = 40.0; | |
var canonY = 1.5; | |
var canonZ = 0.3; | |
private var direction : Vector3; | |
private var fireObject : GameObject; |
This file contains 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; | |
public class motionCtrl : MonoBehaviour { | |
Animator animator; | |
CharacterController character; | |
// Use this for initialization | |
void Start () { |
This file contains 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; | |
public class JoystickToEvents : MonoBehaviour | |
{ | |
public static void Do(Transform root, Transform camera, ref float speed, ref float direction) | |
{ | |
Vector3 rootDirection = root.forward; | |
float horizontal; | |
float vertical; |
This file contains 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
# | |
# Cookbook Name:: instApp | |
# Recipe:: default | |
# | |
# Copyright 2013, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
log "install some apps" |
This file contains 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
/Users/toshikaz% sudo gem install vagrant | |
Password: | |
Fetching: archive-tar-minitar-0.5.2.gem (100%) | |
Fetching: ffi-1.8.1.gem (100%) | |
Building native extensions. This could take a while... | |
Fetching: childprocess-0.3.9.gem (100%) | |
Fetching: erubis-2.7.0.gem (100%) | |
Fetching: i18n-0.6.4.gem (100%) | |
Fetching: log4r-1.1.10.gem (100%) | |
Fetching: net-ssh-2.2.2.gem (100%) |
This file contains 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
Ref. | |
Step 2. Install the SDK toolchain & Compile a watch face from source code | |
http://developer.getpebble.com/1/01_GetStarted/01_Step_2 | |
/Users/toshikaz% cd works/pebble-sdk-release-001/ | |
/Users/toshikaz/works/pebble-sdk-release-001% ls | |
README.md demos/ sdk/ templates/ tools/ watches/ | |
/Users/toshikaz/works/pebble-sdk-release-001% mdview README.md |
This file contains 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
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -f -all local,system,user | |
Ref. | |
Macの「このアプリケーションで開く」欄に異常がある場合の対処方法 / Inforati | |
http://inforati.jp/apple/mac-tips-techniques/system-hints/how-to-fix-duplicate-application-in-open-with-context-menu-of-mac-os.html |
This file contains 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
% sudo brew install rbenv | |
==> Downloading https://github.com/sstephenson/rbenv/tarball/v0.4.0 | |
Already downloaded: /Library/Caches/Homebrew/rbenv-0.4.0.tgz | |
==> Caveats | |
To enable shims and autocompletion add to your profile: | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi | |
To use Homebrew's directories rather than ~/.rbenv add to your profile: | |
export RBENV_ROOT=/usr/local/var/rbenv | |
==> Summary |
This file contains 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
;;; start.el | |
;; Seiji Zenitani's configuration for Emacs 22/23. | |
;; I put this file in ~/lib/emacs/ and then byte-compile it. | |
;; The *.elc file is loaded from the following .emacs.el: | |
;; | |
;; ;; load all *.elc files... | |
;; (mapcar (lambda (x)(load-file x))(directory-files "~/lib/emacs" t "\\.elc$")) | |
This file contains 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
gistに書いてあるmacのキーチェーン使って、githubのパスワードを平文で持たない方法、意味がよくわからなかったが、 | |
.gitconfigのパスワードを置換しろってことだった | |
defunkt/gist · GitHub | |
https://github.com/defunkt/gist/ | |
% less ~/.gitconfig | |
(snip) | |
[github] | |
user = toshikaz55 |
NewerOlder