- 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
pip install xlwings |
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
/// <summary> | |
/// Creates the localize. | |
/// </summary> | |
/// <param name="layout">Layout.</param> | |
public void CreateLocalize(StackLayout layout) | |
{ | |
// TODO: ローカライズ. | |
var selectTitle = "言語選択"; | |
var label = new Label() |
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
// Place your key bindings in this file to overwrite the defaults | |
[{ | |
"key": "shift+alt+l", | |
"command": "editor.action.format" | |
},{ | |
"key": "shift+cmd+r", | |
"command": "editor.action.referenceSearch.trigger", | |
"when": "editorTextFocus" | |
},{ | |
"key": "cmd+d", |
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
using UnityEngine; | |
using System.Collections; | |
public class LoadingScript : MonoBehaviour | |
{ | |
public string word = "NOW LOADING..."; | |
public float height = 30.0f; | |
public float speed = 160.0f; | |
public float deltaX = 25.0f; | |
public float deltaTime = 30.0f; |
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
function Start () { | |
//var moment:DateTime = new System.DateTime(1999, 1, 13, 3, 57, 32, 11); | |
var moment:DateTime = new System.DateTime(2014, 1, 9, 22, 7, 32, 11); | |
Debug.Log(DateTime.Today); | |
var delta:TimeSpan = DateTime.Now - moment; | |
Debug.Log(delta); | |
Debug.Log(DateTime.Now); | |
var day:int = delta.TotalDays; | |
if(day > 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
- (void)onSubmit | |
{ | |
[SVProgressHUD showWithStatus:NSLocalizedString(@"TPRegistControllerSending", nil) maskType:SVProgressHUDMaskTypeBlack]; | |
// フォーム取得 | |
QEntryElement *email = (QEntryElement *)[self.root elementWithKey:@"email"]; | |
QEntryElement *password = (QEntryElement *)[self.root elementWithKey:@"password"]; | |
QEntryElement *password_confirm = (QEntryElement *)[self.root elementWithKey:@"password_confirm"]; | |
QEntryElement *username = (QEntryElement *)[self.root elementWithKey:@"username"]; | |
if(email.textValue == NULL || password.textValue == NULL || password_confirm.textValue == NULL || username.textValue == NULL ) { |