This file contains 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
$buf = ""; | |
document.querySelectorAll("a[href^='/explore/tags/'").forEach( | |
function(currentValue, currentIndex, listObj) { | |
$buf = $buf + currentValue.text + " "; | |
} | |
); | |
prompt("", $buf); |
This file contains 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
tell application "Photos" | |
set sel to selection | |
set cnt to contents of sel | |
class of cnt | |
set pr to properties of item 1 of cnt | |
set loc to location of pr | |
set lat to first item of loc | |
set lon to second item of loc | |
set u to "https://www.google.com/maps/place/" & lat & "," & lon & "/" | |
set the clipboard to u |
This file contains 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
--- robin_nano_cfg_n.txt 2021-07-26 19:21:48.000000000 +0900 | |
+++ robin_nano_cfg_3.txt 2021-07-13 16:48:28.000000000 +0900 | |
@@ -1,7 +1,3 @@ | |
-################# MKS Robin nano configuration ####################### | |
-#此选项只在出厂测试使用 | |
->cfg_hardware_test_enable 0 #硬件测试使能。 | |
- | |
#===================高级功能设置======================================= | |
>cfg_insert_det_module 0 #接入断电检测模块(1:mks 220det;0:mks pwc) | |
This file contains 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
set _clipboard to the clipboard | |
set _lines to paragraphs of _clipboard | |
set _output to "" | |
repeat with i in (reverse of _lines) | |
set _output to _output & i & " | |
" | |
end repeat | |
set the clipboard to _output |
This file contains 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
Arduino IDEを「/Applications/Arduino.app」にインストールしてあり、 | |
書き込み対象のGrblのhexがファイル名「firmware.hex」として「~/Downloads」にあり、 | |
CNCコントロールボードのシリアルポートが「/dev/tty.wchusbserial14510」であると | |
仮定。 | |
Grblのhexはここにある https://github.com/gnea/grbl/releases | |
Grbl0.9から1.1へのアップデートをする場合は、事前に$$で設定を書き出し、コピペして保存しておく。 | |
cd ~/Downloads |
This file contains 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/local/bin/python3 | |
import subprocess | |
from subprocess import PIPE | |
array = {"ANYCUBIC MEGA-S":"192.168.1.10", | |
"ANYCUBIC i3 MEGA":"192.168.1.20", | |
"KINGROON KP3S-1":"192.168.1.30", | |
"KINGROON KP3S-2":"192.168.1.40", | |
"KINGROON KP3S-3":"192.168.1.50", |
This file contains 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
// ↓これをブックマークに登録 | |
javascript:var%20jumpto%3D%22https%3A%2F%2Fwww.aliprice.com%2FIndex%2Fsearch.html%3Flink%3D%22%20%2B%20encodeURIComponent(String(document.location.href))%3Bwindow.location%3Djumpto%3Bvoid(0); | |
// iOS用のショートカット(アリエクアプリの「共有ボタン→もっと」から実行) | |
https://www.icloud.com/shortcuts/0146a2efb16b472d973cf2a3b21fc1a9 | |
// ↓ソース | |
var jumpto = "https://www.aliprice.com/Index/search.html?link=" + encodeURIComponent(String(document.location.href)); |
This file contains 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
#Author-moyashi | |
# Fusion360において日本語交じりのファイルを作ると発生するエラー「ダウンロードしたファイルが見つかりません。考えられるファイルパス:」に対処するFusion360用Pythonスクリプト | |
# エラーが出たらこれを実行するとファイル名が修正されて開けるようになる(こともある) | |
# 「ツール」>「アドイン」>「スクリプトとアドイン」>「スクリプト」>「作成」で新規スクリプトを作り、コピペして登録。 | |
# Shift + Sで「スクリプトとアドイン」のダイアログが表示できるので、そこから実行が楽。 | |
import adsk.core, traceback | |
import os, sys | |
from pathlib import Path |
This file contains 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 python3 | |
import os | |
import sys | |
# pip3 install pyperclip | |
import pyperclip | |
# これで実施したマニュアルメッシュベッドレベリングの補正用途: https://github.com/davidramiro/Marlin-Ai3M | |
# 設定部 |
This file contains 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 python3 | |
import os | |
import sys | |
# pip3 install pyperclip | |
import pyperclip | |
# これで実施したマニュアルメッシュベッドレベリングの補正用途: https://github.com/davidramiro/Marlin-Ai3M | |
# 設定部 |