Skip to content

Instantly share code, notes, and snippets.

View tany3's full-sized avatar
😇
I may be slow to respond.

Masahiro Taniuchi tany3

😇
I may be slow to respond.
  • Tokyo, Japan
View GitHub Profile
@tany3
tany3 / Program.cs
Created February 12, 2015 22:53
C# デバッガを起動する
using System;
using System.Diagnostics;
namespace DebuggerTest
{
class Program
{
static void Main(string[] args)
{
#if DEBUG
@tany3
tany3 / twitter.gs
Created September 17, 2017 07:59 — forked from kijtra/twitter.gs
Google Apps Script での 「oAuthConfig」のサポート終了後用の Twitter API スクリプト。「OAuth1」ライブラリ(ID:Mb2Vpd5nfD3Pz-_a-39Q4VfxhMjh3Sh48)が必要。
// 最初にこの関数を実行し、ログに出力されたURLにアクセスしてOAuth認証する
function twitterAuthorizeUrl() {
Twitter.oauth.showUrl();
}
// OAuth認証成功後のコールバック関数
function twitterAuthorizeCallback(request) {
return Twitter.oauth.callback(request);
}
@tany3
tany3 / 例外をキャッチして再スローするとスタックトレースが途切れるヤツ.linq.cs
Created April 12, 2018 12:05
例外をキャッチして再スローするとスタックトレースが途切れるヤツ
// https://msdn.microsoft.com/ja-jp/library/ms229005(v=vs.100).aspx
// 例外をキャッチして再スローする場合は、空の throw を使用してください。 例外呼び出し履歴を保持するには、これが最善の方法です。
void Main()
{
try
{
DoSomething1();
}
catch (Exception ex)
@tany3
tany3 / makeAppIcons.sh
Created May 19, 2018 05:53
[iOS] make app icons by sips
sips -Z 120 Icon.png --out [email protected]
sips -Z 180 Icon.png --out [email protected]
sips -Z 76 Icon.png --out [email protected]
sips -Z 152 Icon.png --out [email protected]
sips -Z 167 Icon.png --out [email protected]
sips -Z 29 Icon.png --out [email protected]
sips -Z 58 Icon.png --out [email protected]
sips -Z 87 Icon.png --out [email protected]
sips -Z 40 Icon.png --out [email protected]
sips -Z 80 Icon.png --out [email protected]
@tany3
tany3 / Contents.json
Created May 19, 2018 05:56
[iOS] AppIcon.appiconset
{
"images" : [
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "20x20",