- Web系
- Scalatra Sinatraのようなフレームワーク https://github.com/scalatra/scalatra
- Scalate テンプレートエンジン。言語を選べる http://scalate.fusesource.org/
- Play! framework 2.0 プロダクト自体がScalaで実装されている。 http://www.playframework.org/2.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
[MenuItem("GameObject/Forcely Break Prefab", false, 1)] | |
static void BreakPrefabObject() | |
{ | |
GameObject disconnectingObj = Selection.activeGameObject; | |
Selection.activeGameObject = null; | |
PrefabUtility.DisconnectPrefabInstance(disconnectingObj); | |
UnityEngine.Object prefab = PrefabUtility.CreateEmptyPrefab("Assets/dummy.prefab"); | |
PrefabUtility.ReplacePrefab(disconnectingObj, prefab, ReplacePrefabOptions.ConnectToPrefab); | |
PrefabUtility.DisconnectPrefabInstance(disconnectingObj); | |
AssetDatabase.DeleteAsset("Assets/dummy.prefab"); |
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
namespace EditorUtil | |
{ | |
/// <summary> | |
/// 便利メソッド. | |
/// </summary> | |
public class CustomMethods | |
{ | |
/// <summary> | |
/// Widgetのdepthを1増やす1減らす. | |
/// ショートカット: Control + Shift + k. |
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
/* | |
PlayerPrefsX2 | |
Author: shinriyo | |
Date: 1/9/2015 | |
*/ | |
using UnityEngine; | |
using System; | |
using System.Linq; | |
using System.Collections; | |
using System.Collections.Generic; |
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
infix operator ++ { associativity left precedence 160 } | |
func ++ (left: Int, right: Int) -> Int { | |
// 8=2 | |
// 9=1 | |
// 6=1 | |
// 0=1 | |
let cal = { (origin: Int) -> Int in | |
var final = 0 | |
let strOrigin = String(origin) | |
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 System.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
[InitializeOnLoad] | |
/// <summary> | |
/// Draw component icon in hierarchy. | |
/// </summary> | |
public class DrawComponentIconInHierarchy | |
{ |
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; | |
using UnityEditor; | |
using System.IO; | |
/// <summary> | |
// ScriptableObjectをプレハブとして出力する汎用スクリプト | |
/// </summary> | |
// <remarks> | |
// 指定したScriptableObjectをプレハブに変換する。 |
- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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; | |
// angleのスピードで、とあるオブジェクトの周りを回転するスクリプト | |
public class TargetRotation : MonoBehaviour | |
{ | |
// 変数 | |
// 一秒当たりの回転角度 | |
public float angle = 30f; | |