- Scott Chacon on the Interwebs(リンク切れ)
- Scott Chacon on the Interwebs
- GitHub Flow - The best way to use Git and GitHub
31 Aug 2011
| location /resize { | |
| alias /tmp/nginx/resize; | |
| set $width 150; | |
| set $height 100; | |
| set $dimens ""; | |
| if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) { | |
| set $width $1; | |
| set $height $2; | |
| set $image_path $3; |
| // In ResourceLoader.java I added the following method: | |
| // | |
| public void loadLibraryProjectResources(File libraryProjectRoot) throws Exception { | |
| File systemResourceDir = getSystemResourceDir(getPathToAndroidResources()); | |
| File localValueResourceDir = getValueResourceDir(libraryProjectRoot); | |
| File systemValueResourceDir = getValueResourceDir(systemResourceDir); | |
| loadStringResources(localValueResourceDir, systemValueResourceDir); | |
| loadPluralsResources(localValueResourceDir, systemValueResourceDir); | |
| loadValueResources(localValueResourceDir, systemValueResourceDir); |
Perlin Noise (fBm 関数)をオブジェクトの動きに取り入れることによって、色々と面白い効果が生み出せます。例えば、これを位置と回転に適用するだけで、カメラの手ブレ風エフェクトなどを作り出せます。
| using UnityEngine; | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| struct Triangle { | |
| public int p1; | |
| public int p2; | |
| public int p3; | |
| public Triangle(int point1, int point2, int point3) { |
| var fs = require('fs'); | |
| var lame = require('lame'); | |
| var Speaker = require('speaker'); | |
| fs.createReadStream(process.argv[2]) | |
| .pipe(new lame.Decoder()) | |
| .on('format', function (format) { | |
| this.pipe(new Speaker(format)); | |
| }); |
| #!/bin/bash | |
| LANG=ja_JP.utf8 | |
| pid=$$ | |
| date=`date '+%Y-%m-%d-%H_%M'` | |
| outdir="." | |
| if [ $# -le 1 ]; then |
| AudioSFX = function( _p, _autoplay ) { | |
| var self = this; | |
| var parent = _p; | |
| this.sounds = new Array(); | |
| this.context = new webkitAudioContext(); | |
| this.autoplay = _autoplay; | |
| this.play = function( sound ) { |
| using UnityEngine; | |
| using UnityEditor; | |
| using System.IO; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| public class CleanUpWindow : EditorWindow | |
| { | |
| bool groupEnabled = true; | |
| List<string> usedAssets = new List<string>(); |
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| import sys | |
| import os | |
| import atexit | |
| import time | |
| import numpy as np | |
| import pyaudio |