Skip to content

Instantly share code, notes, and snippets.

@uzzu
uzzu / rmnonasciichars.sh
Created October 4, 2012 10:26
ファイル中のASCII文字以外の文字を消す ref: http://qiita.com/items/fd0b89955d18fb21a3ae
#!/bin/sh
usage() {
echo Usage: $0 [OPTIONS] DIRECTORY FILEPATTERN
echo;
echo "\t\tOPTIONS equivalent to OPTIONS of sed"
}
case "$#" in
2) find $1 -name $2 | xargs sed -e 's/[^\x00-\x7E]//g' | less;;
3) find $2 -name $3 | xargs sed $1 's/[^\x00-\x7E]//g';;
*) usage;;
@uzzu
uzzu / 00_stage_reference_in FlexUnit4_methodA.md
Last active December 10, 2015 20:58
Stage reference in FlexUnit4 method A.
We couldn’t find that file to show.
@uzzu
uzzu / 00_stage_reference_in_FlexUnit4_methodB.md
Last active December 10, 2015 20:58
Stage reference in FlexUnit4 method B.
We couldn’t find that file to show.
@uzzu
uzzu / dotlink.bat
Last active December 11, 2015 04:28
windows7でdotfilesに対するシンボリックリンクを貼る時に使えそうなソース
@uzzu
uzzu / fuga.ts
Created March 25, 2013 01:08
こっちだと通る
module A {
module B {
class Fuga {
}
}
}
@uzzu
uzzu / Hoge.cs
Last active December 17, 2015 10:39
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Hoge : MonoBehaviour
{
public List<Vector3> Points;
// Use this for initialization
void Start()
@uzzu
uzzu / 81-C# Script-NewBehaviourScript.cs.txt
Last active December 17, 2015 14:29
The code template for UnityEngine::MonoBehaviour. Copy to /Application/Unity/MonoDevelop.app/Contents/Resources/ScriptTemplates
using UnityEngine;
using System.Collections;
public class #SCRIPTNAME# : MonoBehaviour
{
#region inner classes, enum, and structs
#endregion
#region constants
#endregion
@uzzu
uzzu / Bezier.template.xml
Created May 22, 2013 04:26
MonoDevelop code snippets example. Add to ``~/Library/MonoDevelop-Unity-2.8/Snippets``
<?xml version="1.0" encoding="utf-8"?>
<CodeTemplates version="3.0">
<CodeTemplate version="2.0">
<Header>
<_Group>UnityC#</_Group>
<Version />
<MimeType>text/x-csharp</MimeType>
<Shortcut>B_</Shortcut>
<_Description />
<TemplateType>Unknown</TemplateType>
@uzzu
uzzu / Hoge.cs
Last active December 18, 2015 08:29
UnityEditor.CustomEditor使用時のプリミティブ配列地獄からの脱却
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
public class HogeComponent : MonoBehaviour
{
public enum Fuga
{
Foo,
@uzzu
uzzu / UZUPracticeTest.h
Last active December 18, 2015 19:08
reflection method ?
#import <SenTestingKit/SenTestingKit.h>
@interface UZUPracticeTest : SenTestCase
@end