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
{ | |
"images" : [ | |
{ | |
"size" : "20x20", | |
"idiom" : "iphone", | |
"filename" : "Icon-20@2x.png", | |
"scale" : "2x" | |
}, | |
{ | |
"size" : "20x20", |
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
sips -Z 120 Icon.png --out Icon-60@2x.png | |
sips -Z 180 Icon.png --out Icon-60@3x.png | |
sips -Z 76 Icon.png --out Icon-76@.png | |
sips -Z 152 Icon.png --out Icon-76@2x.png | |
sips -Z 167 Icon.png --out Icon-83.5@2x.png | |
sips -Z 29 Icon.png --out Icon-29@.png | |
sips -Z 58 Icon.png --out Icon-29@2x.png | |
sips -Z 87 Icon.png --out Icon-29@3x.png | |
sips -Z 40 Icon.png --out Icon-40@.png | |
sips -Z 80 Icon.png --out Icon-40@2x.png |
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
// https://msdn.microsoft.com/ja-jp/library/ms229005(v=vs.100).aspx | |
// 例外をキャッチして再スローする場合は、空の throw を使用してください。 例外呼び出し履歴を保持するには、これが最善の方法です。 | |
void Main() | |
{ | |
try | |
{ | |
DoSomething1(); | |
} | |
catch (Exception ex) |
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
// 最初にこの関数を実行し、ログに出力されたURLにアクセスしてOAuth認証する | |
function twitterAuthorizeUrl() { | |
Twitter.oauth.showUrl(); | |
} | |
// OAuth認証成功後のコールバック関数 | |
function twitterAuthorizeCallback(request) { | |
return Twitter.oauth.callback(request); | |
} |
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 System; | |
using System.Diagnostics; | |
namespace DebuggerTest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
#if DEBUG |
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
c:\Program Files\Oracle\VirtualBox>VBoxManage.exe clonehd "D:\src.vdi" "D:\dst.vdi" | |
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% | |
Clone hard disk created in format 'VDI'. UUID: **** | |
c:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyhd "D:\dst.vdi" --resize 153600 | |
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% |
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
# | |
#stop web site | |
# | |
$targetSiteNames = ( "WebSite1", "WebSite2" ) | |
$targetAppPools = ( "AppPool1", "AppPool2" ) | |
"Settings.Target Sites:" | |
foreach ($name in $targetSiteNames) { "`t" + $name } | |
"Settings.Target AppPools:" | |
foreach ($name in $targetAppPools) { "`t" + $name } |
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
# | |
#start web site | |
# | |
$targetSiteNames = ( "WebSite1", "WebSite2" ) | |
$targetAppPools = ( "AppPool1", "AppPool2" ) | |
"Settings.Target Sites:" | |
foreach ($name in $targetSiteNames) { "`t" + $name } | |
"Settings.Target AppPools:" | |
foreach ($name in $targetAppPools) { "`t" + $name } |
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
# | |
#see http://melcher.it/2013/03/powershell-list-all-iis-webapplications-net-version-state-identity/ | |
# | |
try{ | |
Import-Module WebAdministration | |
Get-WebApplication | |
$webapps = Get-WebApplication | |
$list = @() | |
foreach ($webapp in get-childitem IIS:\AppPools\) |
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 System; | |
using CSChatworkAPI; | |
namespace Example | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var client = new ChatworkClient(@"APIToken"); // TODO:APIToken |
NewerOlder