This file contains hidden or 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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Xml.Linq; | |
using System.Xml.XPath; | |
using System.Xml; | |
namespace Example | |
{ |
This file contains hidden or 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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Net; | |
using System.IO; | |
namespace Example | |
{ | |
public static class WebRequestExtensions |
This file contains hidden or 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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Net; | |
using System.IO; | |
namespace Example | |
{ | |
class Program |
This file contains hidden or 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
<?php | |
class ExampleDbTest extends PHPUnit_Extensions_Database_TestCase { | |
protected $conn = null; | |
/** | |
* (non-PHPdoc) | |
* @see PHPUnit_Extensions_Database_TestCase::setUp() | |
*/ | |
public function setUp() { |
This file contains hidden or 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; | |
namespace Example | |
{ | |
public class Convert | |
{ | |
/// <summary> | |
/// 値を指定した基数で等価の String 形式に変換します。 | |
/// 負数の場合はSystem.Convert.ToString(x, Int32)とは違い正数として変換したのち、頭に"-"を付けます。 | |
/// </summary> |
This file contains hidden or 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
@rem このバッチファイルはtest.batなどの名前をつけてplatform-toolsフォルダ内に置いて下さい | |
@rem また、起動するときは http://androidsdk.web.fc2.com/ を参考にA22という名前のAVDを先に作成して下さい | |
..\tools\emulator -avd A22 -partition-size 1000 | |
@echo エミュレータが立ち上がるまで待ったのち、 | |
@pause | |
adb -s emulator-5554 shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system | |
adb -s emulator-5554 shell chmod 777 /system/app |
This file contains hidden or 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
<job> | |
<!-- | |
WSHでjQuery 1.6.2を使用する例 (Shift_JISで保存してください…) | |
# 元プログラム | |
http://d.hatena.ne.jp/hirataka522/20080806/1218031483 | |
# 使用例(コマンドプロンプト) | |
cscript kion.wsf 大垣 | |
--> |
This file contains hidden or 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
/** | |
* jQuery input group plugin (実験的) | |
* public domain | |
* | |
* 郵便番号、電話番号、シリアル番号などの分割されたテキストボックスを | |
* 1つのグループ化されたテキストボックスとして扱います。 | |
* 具体的には下記の挙動を取ります。 | |
* | |
* 1. 要素内にある入力項目にユーザーが文字を入力しており、その入力文字数が | |
* a. 指定文字数(maxlength)に達した場合、次の入力項目に移動します。 |
This file contains hidden or 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
<?php | |
define('FOO', 1); | |
define('BAR', 2); | |
// 変数展開が「{$」で始まっている場合、関数の実行等が可能です。 | |
$c = 'constant'; | |
echo "FOO: {$c('FOO')}, BAR: {$c('BAR')}" . PHP_EOL; // => FOO: 1, BAR: 2 |
This file contains hidden or 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
Order Deny,Allow | |
Satisfy Any | |
# localhost | |
Allow from localhost | |
# other | |
AuthUserFile /path/to/.htpasswd | |
AuthGroupFile /dev/null | |
AuthName "Please enter your ID and password" | |
AuthType Basic |