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
// 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 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 UnityEditor; | |
using System.Collections; | |
public class BatchBuild | |
{ | |
static string bundleIdentifier = "jp.cellfusion.HogeHoge"; | |
// シーンを Editor の設定から取り出す | |
private static string[] GetScenes () |
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
#---------------------------------------------------------------------- | |
# コマンドラインでのipaと.dSYMファイルの作成 | |
#---------------------------------------------------------------------- | |
# .dSYMのPATH設定 | |
TARGET_DSYM=$WORKSPACE/iOS/build/[App Name].app.dSYM | |
# Zip出力する.dSYMファイルのPATH設定 | |
DSYM_ZIP_PATH=$WORKSPACE/iOS/build/[App Name].ipa.dSYM.zip | |
# xcodeプロジェクトパス |
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
mogrify -transparent white -colorspace gray *.png |
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
#!/usr/bin/bash | |
readonly FLA_NAME='Adobe Flash' | |
readonly APP_DIR='/Applications/' | |
readonly CREATE_FILENAME='CreateProject_' | |
readonly UPDATE_FILENAME='UpdateProject_' | |
CMDNAME='progression $0' | |
FLA_VER='CS4' |
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
var tf:TextField = new TextField(); | |
tf.multiline = true; | |
tf.autoSize = TextFieldAutoSize.LEFT; | |
tf.text = "<a href='event:hoge|args1,args2'>hoge</a> fuga"; | |
tf.addEventListenener(TextEvent.LINK, linkHandler); | |
addChild(tf); | |
function linkHandler(event:TextEvent):void | |
{ | |
trace(event.text); // trace -> hoge|args1,args2 |
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
num = 48 | |
path = fl.getDocumentDOM().library.getItemProperty("name"); | |
path_array = path.split("/"); | |
name = path_array[path_array.length - 1]; | |
linkageBaseClass = fl.getDocumentDOM().library.getItemProperty("linkageBaseClass"); | |
linkageExportForAS = fl.getDocumentDOM().library.getItemProperty("linkageExportForAS"); | |
linkageExportInFirstFrame = fl.getDocumentDOM().library.getItemProperty("linkageExportInFirstFrame"); | |
for (i = 1; i < num; i++) { |
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
var map:BitmapData = new BitmapData(w, h, false, 0xFF808080); | |
map.lock(); | |
var center:Point = new Point(w / 2, h / 2); | |
var rmax:Number = Math.sqrt(Math.pow(center.x, 2) + Math.pow(center.y, 2)); | |
for (var x:int = 0; x < w; x++) { | |
for (var y:int = 0; y < h; y++) { | |
var xpos:Number = center.x - x; | |
var ypos:Number = center.y - (h-y); | |
var radius:Number = Math.sqrt(xpos * xpos + ypos * ypos); |
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
package | |
{ | |
import fdt.FdtTextEdit; | |
import swf.bridge.FdtEditorContext; | |
import swf.bridge.IFdtActionBridge; | |
import swf.plugin.ISwfActionPlugin; | |
import flash.display.Sprite; | |
import flash.utils.Dictionary; |
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 c4d | |
from c4d import documents | |
# C4D select Objects GoZ Data Reset | |
GoZ_CONTAINER_ID = 2000000 | |
def main(): | |
doc = documents.GetActiveDocument() | |
objs = doc.GetSelection() |
OlderNewer