View Open_the_currently_selected_photo_in_the_Photos_app_with_Google_Maps.applescript
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 |
View KINGROON KP3Sのノーマルファームウェアと3D Touch対応ファームウェアとのrobin_nano_cfg.txtの差分.diff
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) | |
View reverse_order.applescript
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 |
View gist:fdc78da117694686390336b57ad581b8
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 |
View printer_select.py
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", |
View View_on_AliPrice.js
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)); |
View FixFileNameFusion360.py
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 |
View level_shifter.py
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 | |
# 設定部 |
View level_shifter.py
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 | |
# 設定部 |
View AutoHotkey.ahk
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
; NANOTE用定義 | |
#Include IME.ahk | |
; IME.ahkはここの089.zipから入手可能 | |
; http://lukewarm.s101.xrea.com/up/index.php | |
;--------------------------- | |
;左Shift+SpaceでIMEのトグル | |
<+Space:: |
NewerOlder