- macOS Mojave ver 10.14.1
- Homebrew 1.8.4
- Xcode 10.1(10B61)
$ python -V
Python 2.7.10| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>結合テーブル</title> | |
| <style> | |
| * { | |
| box-sizing: border-box; | |
| } |
| REM Drag-and-Drop target file. | |
| powershell -ExecutionPolicy Unrestricted -File %~dp0\copy_file_with_list.ps1 %~dp0\filelist.txt %* |
| { | |
| "manifest_version": 2, | |
| "name": "markdown_url", | |
| "version": "1.0.0", | |
| "description": "format the page link as markdown", | |
| "background": { | |
| "scripts": ["script.js"], | |
| "persistent": false |
| { | |
| "it syntax": { | |
| "prefix": "it", | |
| "body": [ | |
| "it '$1' do", | |
| "\t$0", | |
| "end" | |
| ] | |
| }, | |
| "describe syntax": { |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Console.WriteLine("start"); | |
| string output = ""; | |
| for (int i = 0; i < 5; i++) | |
| { | |
| System.Threading.Thread.Sleep(1000); |
| private bool isMatch(string input) | |
| { | |
| // 英字小文字、大文字、数字を1つずつ含み、8文字以上(記号は含まない) | |
| var pattern = @"^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{8,}$"; | |
| // NOTE:記号を含む場合、ASCII表記の方が楽かも[\x21-\x7e] | |
| return Regex.IsMatch(input, pattern); | |
| } |
| 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() |
| 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 |