This file contains hidden or 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 ScrollTexture : MonoBehaviour { | |
public float scrollSpeed = 0.0004f ; | |
private Mesh mesh ; | |
// Use this for initialization | |
void Start () { | |
mesh = GetComponent<MeshFilter>().mesh ; |
This file contains hidden or 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 UnityEngine.UI; | |
using System.Collections; | |
public enum Fade{ In, Out }; | |
public class SplashImage : MonoBehaviour { | |
public float fadeTime = 1.0f ; | |
public int nextScene ; |
This file contains hidden or 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
convert frame*.tif -scene 1 frame%04d.png |
This file contains hidden or 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
__author__ = 'tani' | |
import shutil | |
if __name__ == '__main__': | |
start = 1 | |
end = 1324 | |
step = 5 | |
copy_from = "form/" | |
copy_to = "to/" |
This file contains hidden or 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
ffmpeg -i input.mp4 -metadata:s:v rotate="0" -vf "hflip,vflip" -c:v libx264 -crf 23 -acodec copy output.mp4 | |
ffmpeg -i output.mp4 "out_%04d.jpg" |
This file contains hidden or 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; | |
[ExecuteInEditMode] | |
public class SetRenderQueue : MonoBehaviour { | |
public int rQueue; | |
// Use this for initialization | |
void Start () { | |
GetComponent<Renderer>().material.renderQueue = rQueue; |
This file contains hidden or 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
Shader "StandardDoubleSide" | |
{ | |
Properties | |
{ | |
_Color("Color", Color) = (1,1,1,1) | |
_MainTex("Albedo", 2D) = "white" {} | |
_Cutoff("Alpha Cutoff", Range(0.0, 1.0)) = 0.5 | |
_Glossiness("Smoothness", Range(0.0, 1.0)) = 0.5 |
This file contains hidden or 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; | |
using UnityEngine.UI; | |
public class CaptureScreen : MonoBehaviour { | |
public string fileName; | |
// Use this for initialization | |
void Start () { | |
Button button = this.GetComponent<Button>(); |
This file contains hidden or 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 SetUIPos : MonoBehaviour { | |
public enum enumCorner { TopLeft, BottomLeft, TopRight, BottomRight }; | |
public enumCorner coner; | |
public int offsetX; | |
public int offsetY; | |
// Use this for initialization |
This file contains hidden or 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
__author__ = 'tani' | |
from xml.etree.ElementTree import * | |
from operator import itemgetter, attrgetter | |
class Question: | |
def __init__(self, delayTime, comment): | |
self.delayTime = delayTime | |
self.comment = comment | |
def __repr__(self): | |
return repr((self.delayTime, self.comment)) |