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
#cloud-config | |
locale: ja_JP.UTF-8 | |
timezone: Asia/Tokyo | |
users: | |
- name: sssho | |
groups: users,sudo,cdrom,adm,dip,plugdev | |
sudo: ALL=(ALL) NOPASSWD:ALL | |
shell: /bin/bash | |
lock_passwd: true | |
write_files: |
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
Option Explicit | |
Sub test() | |
Debug.Print "--- start" | |
' tableTest | |
' insertTest | |
findTest | |
Debug.Print "--- end" | |
End Sub |
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
@duration = | |
VAR Duration = SUM('table'[duration]) | |
VAR Hours = INT(Duration * 24) | |
VAR Minutes = INT(MOD(Duration * 24 * 60, 60)) | |
VAR Seconds = INT(MOD(Duration * 24 * 60 * 60, 60)) | |
RETURN | |
FORMAT(Hours,"00") & "h" & FORMAT(Minutes,"00") & "m" & FORMAT(Seconds,"00") & "s" |
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
[tool.isort] | |
profile = "black" | |
[tool.mypy] | |
namespace_packages = false | |
ignore_missing_imports = true | |
check_untyped_defs = true | |
[tool.pylint."messages control"] | |
max-line-length = 88 |
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
{ | |
// Place your snippets for python here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
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
- class: first | |
users: | |
- name: hoge | |
type: one | |
value: 1 | |
- name: fuga | |
type: two | |
value: 2 | |
- class: second | |
users: |
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 win32com.client | |
def main(excel_path: str): | |
x = win32com.client.Dispatch("Excel.Application") | |
wb = x.Workbooks.Open(excel_path) | |
wb.refreshall() | |
wb.Save() | |
wb.Close(SaveChanges=True) |
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
// https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-shllink/4d25bbad-09b7-4322-8c0a-521d268481bb | |
package main | |
import ( | |
"bufio" | |
"bytes" | |
"encoding/binary" | |
"fmt" | |
"io" |
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
// Place your key bindings in this file to override the defaults | |
[ | |
// Disable default settings | |
{ | |
"key": "ctrl+p", | |
"command": "-workbench.action.quickOpenNavigateNextInFilePicker", | |
"when": "inFilesPicker && inQuickOpen" | |
}, | |
{ | |
"key": "ctrl+n", |
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
""" | |
Select opened excel workbook and foucs it | |
Requirment: | |
peco.exe in your PATH | |
""" | |
import sys | |
import subprocess | |
import shutil |
NewerOlder