Skip to content

Instantly share code, notes, and snippets.

View monry's full-sized avatar

Tetsuya Mori monry

View GitHub Profile
@monry
monry / ChatWorkNotification.js
Last active December 28, 2015 09:59
Fluid で ChatWork を App 化した際に、通知周りを拡張したかったので書いた。・未読件数をバッヂ表示・新着受信時 (正確にはバッヂ数が変化する時) に、Dock アイコン跳ねさせるSee also:- http://www.simplegimmick.com/2012/02/fluidchatworkcom.html- http://weblog.ymt2.net/blog/html/2012/12/13/chatwork_meets_fluid.html
window.fluid.dockBadge = '';
setTimeout(updateDockBadge, 1000);
setTimeout(updateDockBadge, 3000);
setInterval(updateDockBadge, 5000);
function updateDockBadge() {
var badge = '';
var unread = document.getElementById('_chatUnreadStatus');
if (unread.style.display != 'none' && unread.innerHTML) {
badge = unread.innerHTML + '';
@monry
monry / ChatWork.php
Created December 5, 2013 00:46
色々イケてないけど、ChatWork API と会話するためのクラス書いてみた。 まだ全部のメソッドを補完したワケじゃ無いけどねw
<?php
/**
* ChatWork.php
*
* @author Tetsuya MORI
*/
/**
* ChatWork とキャッキャウフフする
*
namespace ForwardCompatibility {
// ReSharper disable once PartialTypeWithSinglePart
/// <summary>
/// .NET 3.5 の System.Enum に不足している機能を提供するための前方互換 Enum クラス
/// </summary>
public partial class Enum {
/// <summary>
@monry
monry / .gitattributes
Last active July 27, 2017 13:32
Unity 用 .gitattributes のテンプレート
*.png filter=lfs diff=lfs merge=lfs -text
*.bmp filter=lfs diff=lfs merge=lfs -text
*.gif filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.psd filter=lfs diff=lfs merge=lfs -text
*.tiff filter=lfs diff=lfs merge=lfs -text
*.tga filter=lfs diff=lfs merge=lfs -text
*.iff filter=lfs diff=lfs merge=lfs -text
*.pict filter=lfs diff=lfs merge=lfs -text
@monry
monry / GlobalSettingsStorage.DotSettings
Created July 28, 2017 09:34
KidsStar 的オススメ Rider 設定
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeEditing/Intellisense/CodeCompletion/CacheImportCompletion/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=AccessToForEachVariableInClosure/@EntryIndexedValue">DO_NOT_SHOW</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ArrangeThisQualifier/@EntryIndexedValue">DO_NOT_SHOW</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=CheckNamespace/@EntryIndexedValue">DO_NOT_SHOW</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=ConvertIfStatementToNullCoalescingExpression/@EntryIndexedValue">DO_NOT_SHOW</s:String>
<s:String x:Key="/Default/CodeI
@monry
monry / unity.sh
Last active September 21, 2018 12:49
カレントディレクトリのプロジェクトを Unity で開く
#!/bin/sh
UNITY_VERSION=""
if [ ! -z $1 ]; then
UNITY_VERSION=$1
fi
open -n /Applications/Unity${UNITY_VERSION}/Unity.app --args -projectPath `pwd`
@monry
monry / PseudoDictionarySample.cs
Created August 16, 2017 18:09
疑似 Dictionary を実現するためのサンプルコードです
using System;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
public struct Fuga {
public string Key;
[Range(1, 10)]
@monry
monry / .gitignore_global
Created December 19, 2017 07:47
.gitignore_global for macOS
# General
*.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
@monry
monry / Mole.cs
Last active December 20, 2017 06:42 — forked from komagata/Mole.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Mole : MonoBehaviour {
void Start () {
}
void Update () {
@monry
monry / KidsStar.DotSettings
Created May 23, 2018 01:54
Rider settings for KidsStar
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeEditing/ContextActionTable/DisabledContextActions/=JetBrains_002EReSharper_002EIntentions_002ECSharp_002EContextActions_002EMisc_002ESurroundWithQuotesAction/@EntryIndexedValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeEditing/Intellisense/CodeCompletion/CacheImportCompletion/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeEditing/TypingAssist/VirtualSpaceOnEnter/@EntryValue">False</s:Boolean>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=CheckNamespace/@EntryIndexedValue">DO_NOT_SHOW</s:String>
<s:Boolean x:Key="/Default/CodeStyle/Generate/=Constructor/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/CodeStyle/Generate/=Constructor/Optio