Discover gists
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
# -*- coding: utf-8 -*- | |
""" | |
Данные с адресом, логином, паролем хранятся в конфигурационном файле следующего вида: | |
[Router] | |
ip_addr = 192.168.1.1:8080 | |
login = admin | |
passw = anyPassword |
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
{ | |
"lineWidth": 120, | |
"typescript": { | |
"indentWidth": 2, | |
"quoteStyle": "preferDouble", | |
"quoteProps": "asNeeded", | |
"importDeclaration.sortNamedImports": "caseSensitive", | |
"exportDeclaration.sortNamedExports": "caseSensitive", | |
"module.sortImportDeclarations": "caseSensitive", | |
"module.sortExportDeclarations": "caseSensitive" |
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
#!/usr/bin/env bash | |
# ------------------------------------------------------------ | |
# scan_dropbox_conflicts.sh | |
# | |
# Scan a Dropbox folder for conflicted copy files and optionally delete them. | |
# Fast mode uses Spotlight (mdfind) on macOS; fallback uses find with name filters. | |
# | |
# Features: | |
# - Recursive scan of target folder (default: current directory). | |
# - Multi-language patterns ("conflicted copy", "충돌된 사본"; extensible). |
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
// 選択テキストを英数全角にする | |
function toFullWidth(theRange) { | |
// 初期化 | |
app.findTransliteratePreferences = NothingEnum.nothing; | |
app.changeTransliteratePreferences = NothingEnum.nothing; | |
// 文字種変換の設定 | |
app.findTransliteratePreferences.findCharacterType = FindChangeTransliterateCharacterTypes.HALF_WIDTH_ROMAN_SYMBOLS; | |
app.changeTransliteratePreferences.changeCharacterType = FindChangeTransliterateCharacterTypes.FULL_WIDTH_ROMAN_SYMBOLS; |
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
// 選択テキストを英数半角にする | |
function toHalfWidth(theRange) { | |
// 初期化 | |
app.findTransliteratePreferences = NothingEnum.nothing; | |
app.changeTransliteratePreferences = NothingEnum.nothing; | |
// 文字種変換の設定 | |
app.findTransliteratePreferences.findCharacterType = FindChangeTransliterateCharacterTypes.FULL_WIDTH_ROMAN_SYMBOLS; | |
app.changeTransliteratePreferences.changeCharacterType = FindChangeTransliterateCharacterTypes.HALF_WIDTH_ROMAN_SYMBOLS; |
NewerOlder