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
TARGET = ViewDeck | |
PROJECT = $(TARGET).xcodeproj | |
LIB_NAME = lib$(TARGET) | |
BUILD_CONFIG = Release | |
BUILD_DIR = ./build | |
OUTPUT_DIR = $(BUILD_DIR) | |
OUTPUT_FILE = $(TARGET) | |
default: init |
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
自分が宴会幹事になったときのポリシー. | |
1. 居酒屋が入っている建物に、他にはどんなお店が入っているかを確認する | |
2. 次の日に仕事がある場合、制限時間を設ける (19:00 - 21:00) | |
3. メモを取るための道具をポケットに忍ばせておく (店員ではなく、幹事に注文する人が居る) | |
4. 予約する際は、可能な限り個室にする (個室以外だと、こそこそ話がしづらい) | |
5. 乾杯前、集団のまとめ役に挨拶を頂戴する (いきなり乾杯すると、ブチギレする人が居る) |
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 mkdir /usr/local/play | |
$ sudo mv $HOME/Download/play-2.2.0 /usr/local/lib/play/2.2.0 | |
$ sudo chown -R root:admin /usr/local/lib/play | |
$ sudo chmod -R g+w /usr/local/lib/play/2.2.0 | |
$ sudo ln -s /usr/loca/lib/play/2.2.0/play /usr/local/bin/play | |
$ emacs $HOME/.zshrc | |
export PATH=$PATH:/usr/local/bin/play | |
$ play help // 動作確認 |
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
// Task.javaを修正する | |
package models; | |
import java.util.*; | |
import play.db.ebean.*; | |
import play.data.validation.Constraints.*; | |
import javax.persistence.*; | |
@Entity | |
public class Task extends Model { |
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
#!/bin/sh | |
# LICENSE | |
# | |
# rbenv setup assistance | |
# Copyright (C) 2013 Hiroaki ENDOH | |
# | |
# This program is free software; you can redistribute it and/or modify it under the terms of the GNU | |
# General Public License as published by the Free Software Foundation; either version 3 of the License, or | |
# (at your option) any later version. |
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
#!/bin/sh | |
# LICENSE | |
# | |
# pyenv setup assistant | |
# Copyright (C) 2014 Hiroaki ENDOH | |
# | |
# This program is free software; you can redistribute it and/or modify it under the terms of the GNU | |
# General Public License as published by the Free Software Foundation; either version 3 of the License, or | |
# (at your option) any later version. |
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
import maya.api.OpenMaya as om | |
def maya_useNewAPI(): | |
pass | |
class HelloWorld(om.MPxCommand): | |
kPluginCmdName = "HelloWorld" | |
def __init__(self): | |
om.MPxCommand.__init__(self) |
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
export MAYA_PLUG_IN_PATH="path/to/plug-ins" |
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
if [ $# -ne 1 ]; then | |
echo "パスをダブルクォートで囲って指定してください。" 1>&2 | |
exit 1 | |
fi | |
files=$1 | |
for filepath in $files; do | |
echo $filepath | |
done |
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
import maya.cmds as cmds | |
cmds.polyPlane(n='myPlane1', sx=1, sy=1, w=1.0, h=1.0) | |
# 他にもこういったコマンドでオブジェクトを生成できる | |
# cmds.polyCube( n='myCube1', sx=1, sy=1, sz=1, w=1.0, h=1.0) | |
# cmds.polySphere(n='mySphere1', sx=1, sy=1, r=1.0) | |
# cmds.polyCylinder(n='myCylinder1', sx=1, sy=1, sz=1, h=1.0) | |
# 生成したオブジェクトを移動、拡大、回転させる | |
cmds.move( 5, 0, 0, 'myPlane1', r=True ) |
OlderNewer