Skip to content

Instantly share code, notes, and snippets.

@masa795
masa795 / TestClass.php
Created April 3, 2018 15:23
PhpStorm で自由な位置でコードを折りたたむ
<?php
class TestClass
{
// <editor-fold desc="旧コード">
public function main(){
$this->throwException();
}
@masa795
masa795 / gist:03724f39fad81f56d361539aced0105f
Created March 25, 2018 08:39
PhpStormの日本語化 戻す
# 日本語化
# -Xverify:none
# -javaagent:/Users/[ユーザー名]/Library/Preferences/PhpStorm2017.3/jp.sourceforge.mergedoc.pleiades/pleiades.jar
@masa795
masa795 / PhpStorm_jp
Last active March 25, 2018 08:33
PhpStormの日本語化
# 日本語化
-Xverify:none
-javaagent:/Users/[ユーザー名]/Library/Preferences/PhpStorm2017.3/jp.sourceforge.mergedoc.pleiades/pleiades.jar
@masa795
masa795 / UnityEditor.txt
Created October 13, 2014 15:35
Unity4.5.5で追加されたメソッド
######################################
UnityEditor.PlayerSettings
static function
--------------------------------------------------
Boolean get_d3d11ForceExclusiveMode()
Void set_d3d11ForceExclusiveMode( Boolean value )
--------------------------------------------------
@masa795
masa795 / UnityEditor.txt
Last active August 29, 2015 14:06
Unity4.5.4で追加されたメソッド
######################################
UnityEditor.PlayerSettings
static function
--------------------------------------------------
Boolean get_visibleInBackground()
Void set_visibleInBackground( Boolean value )
--------------------------------------------------
@masa795
masa795 / AppWebSocket.cs
Created March 15, 2014 10:36
UnityでWebSocket通信
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using WebSocketSharp;
using System;
public class AppWebSocket : MonoBehaviour {
@masa795
masa795 / WindowNotification.cs
Created March 9, 2014 10:06
EditorWindow上に通知を表示する
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 March 2, 2014 06:53
Node.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);
{
"websocket" : {
"port" : 9999
},
"logging" : true,
"const" : {
"env" : "development",
"ver" : "9999"
@masa795
masa795 / DragReSizeFiled.cs
Created December 7, 2013 14:51
GUIの横幅をマウスのドラッグで変更する
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 () {