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
// ---------------------------------------- | |
// Config | |
$image-directory: './image'; | |
$bp-narrow-mobile : 320px; | |
$bp-mobile-tablet : 480px; | |
$bp-tablet-desktop: 800px; | |
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 util | |
{ | |
import flash.display.DisplayObject; | |
import flash.events.Event; | |
import flash.events.EventDispatcher; | |
import flash.events.TimerEvent; | |
import flash.utils.getTimer; | |
/** | |
* This is the timer class based on getTimer(). |
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/python2.7 | |
# -*- coding: utf-8 -*- | |
import mechanize | |
from BeautifulSoup import BeautifulSoup | |
import tweepy | |
SHINDAN_URL = "http://shindanmaker.com/322469" | |
TWITTER_USERNAME = "username" | |
TWITTER_API_KEY = "*****************************" |
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
float offsetX; | |
float offsetY; | |
float endY; | |
float posX; | |
float posY; | |
float oldX; | |
float oldY; | |
float noise = 0; | |
void setup() { |
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フレーム目に以下のスクリプトを記述する | |
// new Recorder(stage /*ステージ*/, 60 /*キャプチャしたいフレーム総数*/, "loading" /*プリフィックス*/); | |
package | |
{ | |
import flash.desktop.NativeApplication; | |
import flash.display.BitmapData; | |
import flash.display.Stage; | |
import flash.events.Event; | |
import flash.filesystem.File; |
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
/** | |
* zipファイルをダウンロードしてメモリ上に非同期展開する | |
* | |
* var loader:ZipLoader = new ZipLoader(); | |
* loader.addEventListener(ZipLoaderEvent.COMPLETE, completeHandler); | |
* loader.addEventListener(ZipLoaderEvent.ERROR, errorHandler); | |
* loader.addEventListener(ZipLoaderEvent.EXECUTED, executedHandler); | |
* loader.load("http://path_to.zip"); | |
* | |
* function completeHandler(event:ZipLoaderEvent):void { |
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. ライブラリにBarシンボルを作る(基準点を中心に回転する) | |
2. 以下のスクリプトを1フレーム目にコピペしてする | |
3. パラメータを適当に変える | |
4. 書き出し設定をAIRにしてムービープレビューする | |
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
/** | |
* Progression 4 | |
* | |
* @author Copyright (C) 2007-2010 taka:nium.jp, All Rights Reserved. | |
* @version 4.0.2 | |
* @see http://progression.jp/ | |
* | |
* Progression Libraries is dual licensed under the "Progression Library License" and "GPL". | |
* http://progression.jp/license | |
*/ |
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
/** | |
* TextField内のアスキー文字列(半角英数記号)を指定のフォントに置換する | |
* @param field 操作対象のTextField | |
* @param font 置換後のフォント | |
*/ | |
function replaceAsciiFont(tf:TextField, font:String):void | |
{ | |
replaceFont(tf, /[\u0020-\u007e]+/g, font); | |
} |
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
function find(source:String, pattern:RegExp, callback:Function = null):Array { | |
var indices:Array = new Array(); | |
var result:Object; | |
var i:int = -1; | |
while (result = pattern.exec(source)) { | |
++i; | |
if (callback != null) callback.call(null, i, result); | |
indices.push(result.index); | |
if (!pattern.global) break; | |
} |
NewerOlder