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
package main | |
import ( | |
"fmt" | |
"os" | |
"io" | |
"encoding/csv" | |
) | |
func main() { |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
) | |
func main() { | |
var ( | |
boolFlag bool |
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
/* | |
* $ go run flag_sample.go -i 100 -s "strflag" 1 2 3 | |
* os.Args: [/.../os_args_sample -i 100 -s strflag 1 2 3] | |
* flag.Args: [1 2 3] | |
* b: false | |
* i: 100 | |
* s: strflag | |
*/ | |
package main |
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
/** | |
* @file sakura_selection_sample.js | |
* | |
* 注:Shift_JISで保存してください (サクラエディタマクロの制約事項) | |
*/ | |
/** | |
* 選択範囲(レイアウト座標) | |
* | |
* @param {number} lineFrom 選択開始行(レイアウト座標) |
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
import ast | |
source = """ | |
name = "Inu" | |
age = 10 | |
print("Hello, {}({})!".format(name, age)) | |
""" | |
tree = ast.parse(source) |
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
[{"action":"javascript","blacklist":"whitelist","code":"iframe = document.querySelector('#YouTube > iframe')\nid = iframe.src.match(/([0-9a-zA-Z]+)?$/)[0]\nhistory.go(id?-1:-2)","customName":"Go back","exported":true,"key":"a","open":false,"sites":"https://dova-s.jp/bgm/play*","sitesArray":["https://dova-s.jp/bgm/play*"]},{"action":"javascript","blacklist":"whitelist","code":"console.log('-- Play youtube movie')\niframe = document.querySelector('#YouTube > iframe')\nid = iframe.src.match(/([0-9a-zA-Z]+)?$/)[0]\nif (id) {\n\tiframe.src += `?autoplay=1&playlist=${id}&muted=1&`\n playedBgms = JSON.parse(localStorage.getItem('playedBgms')) || {}\n \ttitle = document.querySelector('#titleYouTube > h2').firstChild.textContent.trim()\n playedBgms[location.pathname] = title\n localStorage.setItem('playedBgms', JSON.stringify(playedBgms))\n console.log(playedBgms)\n} else {\n \thistory.go(-2)\n}","customName":"Play bgm","exported":true,"key":"space","open":false,"sites":"https://dova-s.jp/bgm/play*","sit |
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
b |
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
@startuml "State machine diagram of KING BLADE X10 V" | |
[*] --> ColorChange : A0.5秒押し(電源ON) | |
[*] --> ColorChange : A1.5秒押し(色1で電源ON) | |
[*] --> MemorySetA : B長押し | |
[*] --> MemorySetB : A&B長押し | |
ColorChange --> ColorChange : A/B(次/前の色を選択) | |
ColorChange --> ColorChange : C長押し(推し色を設定) | |
ColorChange --> HotButton : C(推し色に変更) |
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
# > python --version | |
# Python 3.8.2 | |
# > python genfile2.py -n 100000 --max 200 | |
# > attrib *2.csv | |
import sys | |
import random | |
import argparse | |
from pathlib import Path |
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
import os | |
from ctypes import windll, create_unicode_buffer | |
dll = windll.LoadLibrary('kernel32.dll') | |
for longname in os.listdir('.'): | |
shortname = create_unicode_buffer(16) | |
dll.GetShortPathNameW(longname, shortname, 16) | |
if shortname.value.lower().endswith('2.csv'): | |
print('from:', longname) |