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
version: "3" | |
services: | |
node: | |
image: node:lts-alpine | |
container_name: node | |
tty: true | |
volumes: | |
- .:/node | |
working_dir: /node | |
ports: |
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
' 引数確認 | |
if WScript.Arguments.Count <> 2 then | |
WScript.echo("引数を2つ指定してください。" + vbCrLf + WScript.ScriptName + " TargetPath ShortCutName") | |
WScript.Quit(-1) | |
end if | |
' ファイルシステムオブジェクトの作成 | |
set fobj = CreateObject("Scripting.FileSystemObject") | |
' TargetPathのフルパスを取得 |
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
List<int> list = new List<int> { 0, 1, 2, 3, 4 }; | |
foreach(int i in list) | |
System.Console.Write(i + ", "); | |
System.Console.WriteLine(""); | |
int[] array = list.ToArray(); | |
foreach(int i in array) | |
System.Console.Write(i + ", "); | |
System.Console.WriteLine(""); |
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; | |
[CustomEditor(typeof(Transform))] | |
public class TAK_Handle : Editor | |
{ | |
static bool viewFlag = true; | |
bool ctrlFlag = false; |
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 GearMaker : EditorWindow | |
{ | |
int toothNum = 0; | |
[MenuItem("GameObject/Gear")] | |
public static void makeGear() |
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
using System.Collections; | |
using System.IO; | |
namespace TAKL |
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; | |
namespace TAKL | |
{ | |
public class CreateOtherPrimitive : EditorWindow | |
{ | |
[MenuItem("GameObject/Create Other/Other Primitives/Half Cube")] | |
public static GameObject CreateHalfCube() |
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 System.Collections; | |
// クラス名が被っているといけないので、namespaceで囲む | |
namespace TAK_CameraController | |
{ | |
// マウスのボタンをあらわす番号がわかりにくかったので名前を付けた | |
enum MouseButtonDown | |
{ | |
MBD_LEFT = 0, |
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 System.Collections; | |
namespace TAK_CameraController | |
{ | |
enum MouseButtonDown | |
{ | |
MBD_LEFT = 0, | |
MBD_RIGHT, | |
MBD_MIDDLE, |
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
public class LineEdit : MonoBehaviour | |
{ | |
private Rect frame; | |
private string text; | |
static public LineEdit makeLineEdit(string name, Rect frame) | |
{ | |
GameObject go = new GameObject(name); | |
LineEdit le = go.AddComponent<LineEdit>(); |
NewerOlder