Skip to content

Instantly share code, notes, and snippets.

@masa795
masa795 / TestClass.php
Created Apr 3, 2018
PhpStorm で自由な位置でコードを折りたたむ
View TestClass.php
<?php
class TestClass
{
// <editor-fold desc="旧コード">
public function main(){
$this->throwException();
}
View gist:03724f39fad81f56d361539aced0105f
# 日本語化
# -Xverify:none
# -javaagent:/Users/[ユーザー名]/Library/Preferences/PhpStorm2017.3/jp.sourceforge.mergedoc.pleiades/pleiades.jar
@masa795
masa795 / PhpStorm_jp
Last active Mar 25, 2018
PhpStormの日本語化
View PhpStorm_jp
# 日本語化
-Xverify:none
-javaagent:/Users/[ユーザー名]/Library/Preferences/PhpStorm2017.3/jp.sourceforge.mergedoc.pleiades/pleiades.jar
@masa795
masa795 / UnityEditor.txt
Created Oct 13, 2014
Unity4.5.5で追加されたメソッド
View UnityEditor.txt
######################################
UnityEditor.PlayerSettings
static function
--------------------------------------------------
Boolean get_d3d11ForceExclusiveMode()
Void set_d3d11ForceExclusiveMode( Boolean value )
--------------------------------------------------
@masa795
masa795 / UnityEditor.txt
Last active Aug 29, 2015
Unity4.5.4で追加されたメソッド
View UnityEditor.txt
######################################
UnityEditor.PlayerSettings
static function
--------------------------------------------------
Boolean get_visibleInBackground()
Void set_visibleInBackground( Boolean value )
--------------------------------------------------
@masa795
masa795 / AppWebSocket.cs
Created Mar 15, 2014
UnityでWebSocket通信
View AppWebSocket.cs
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using WebSocketSharp;
using System;
public class AppWebSocket : MonoBehaviour {
@masa795
masa795 / WindowNotification.cs
Created Mar 9, 2014
EditorWindow上に通知を表示する
View WindowNotification.cs
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public class WindowNotification : EditorWindow {
// Add menu item to the Window menu
[MenuItem ("Window/Window Notification")]
static void Init () {
@masa795
masa795 / example.js
Created Mar 2, 2014
Node.jsサンプル
View example.js
var WebSocket = require('websocket').server,
Http = require('http'),
Config = require('config');
console.log("========= Start ===========");
console.log(new Date());
console.log("NODE_ENV="+process.env.NODE_ENV);
console.log("NODE_PATH="+process.env.NODE_PATH);
View development.json
{
"websocket" : {
"port" : 9999
},
"logging" : true,
"const" : {
"env" : "development",
"ver" : "9999"
@masa795
masa795 / DragReSizeFiled.cs
Created Dec 7, 2013
GUIの横幅をマウスのドラッグで変更する
View DragReSizeFiled.cs
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public class DragReSizeFiled : EditorWindow {
// Add menu item to the Window menu
[MenuItem("Window/DragReSizeFiled")]
static void Init () {
You can’t perform that action at this time.