- テスト用のプロキシサーバーをさくっと建てたい
- プロキシ環境下でユーザー制限(Basic認証)をつける
- Squidを使用してローカルマシン内にプロキシサーバーを構築する
- ついでに、httpプロキシでのBasic認証使用している環境を再現する
using System; | |
using System.Diagnostics; | |
using System.Threading; | |
using System.Windows.Automation; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static AutomationFocusChangedEventHandler focusHandler = null; |
Add-Type -Assembly System.Windows.Forms | |
function Format-Time | |
{ | |
Param([int]$value) | |
<# | |
.description | |
計測時間(秒)を時分秒に変換します | |
#> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>DomParser innerHtml Test</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
</head> | |
<body> |
private readonly List<char> newlineChar = Environment.NewLine.ToCharArray().ToList(); | |
/// <summary> | |
/// CSVファイルを読込、Listに変換する。 | |
/// | |
/// 改行文字やカンマを含む値は | |
/// ダブルクォーテーションで囲んであるものとする。 | |
/// </summary> | |
/// <param name="filepath">CSVファイルのパス</param> | |
/// <returns></returns> |
let day = '日' | |
let week = '週' | |
let month = '月' | |
export {day, week, month} | |
// 変数の場合defaultは使用できない | |
export let year = '年' | |
let dayOfWeek |
using System; | |
using System.Collections.Generic; | |
using System.Text.RegularExpressions; | |
namespace sampleapp_csharp | |
{ | |
class Program | |
{ | |
// 正規表現で取得した文字列で分割する | |
static void Main(string[] args) |
@echo off | |
rem 実行環境: Windows 7 x64(日本語環境) | |
rem 留意事項:文字コード:UTF-8(BOMなし)、日本語は文字化けする | |
rem 環境を汚染しないようにローカル化 | |
setlocal | |
rem タイトル変更 | |
title Countdown Timer |
class BitFlagTest : IFlagTest | |
{ | |
// ビットシフトで表記 | |
const int flag1 = 1 << 0; //2進数:001 10進数:1 16進数:0x1; | |
const int flag2 = 1 << 1; //2進数:010 10進数:2 16進数:0x2; | |
const int flag3 = 1 << 2; //2進数:100 10進数:4 16進数:0x4; | |
int flag = 0; | |
public void AllFlags_On() |