class Symbol
def to_proc
Proc.new do |obj, *args|
obj.send self, *args
end
end
end
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
# focus window | |
# | | i3-wm | yabai | | |
# | ---------------- | ----------- | ---------- | | |
# | フォーカスの移動 | $mod + jkl; | alt + hjkl | | |
alt - h : yabai -m window --focus west | |
alt - j : yabai -m window --focus stack.next || yabai -m window --focus south | |
alt - k : yabai -m window --focus stack.prev || yabai -m window --focus north | |
alt - l : yabai -m window --focus east |
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
Function IsHoliday(holidayCollection As Collection, day As Date) As Boolean | |
IsHoliday = False | |
Dim index as long | |
Dim holiday as Date | |
For index = 1 to holidayCollection.Count | |
holiday = holidayCollection.Item(index) | |
If holiday = day Then | |
IsHoliday = True | |
Exit For | |
End if |
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
/* ======= AUTOTAG MODE v0.4.1======== | |
* Pre-requisites - | |
* For NLP dates: Roam42 https://roamjs.com/extensions/roam42 | |
* For PageSynonyms: Page Synonyms https://roamjs.com/extensions/page-synonyms | |
* Hat-tips: Azlen for arrive.js idea; Tyler Wince for Unlink Finder; Chris TftHacker for Roam42; Murf for demystifying JS and refactoring the regex; David Vargas for everything! | |
*/ | |
/* ======= OPTIONS ======= */ | |
let caseinsensitive = !0, // change to 0 to only tag references with exact case, otherwise it will alias, e.g., [book]([[Book]]) |
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
-------------------------------------------------------------- | |
-- HANDLE SCROLLING & RELOAD | |
-------------------------------------------------------------- | |
-- ref. https://github.com/tekezo/Karabiner/issues/814#issuecomment-337643019 | |
local shouldFireOriginalRightMouseDown = false | |
local leftDowned = false | |
local rightDowned = false | |
overrideLeftMouseDown = hs.eventtap.new({ hs.eventtap.event.types.leftMouseDown }, function(e) |
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
~ ~ | |
, 、 | |
. 。 | |
/ ・ | |
: ー | |
- ー | |
; っ | |
[ 「 | |
] 」 |
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
{ | |
"description": "escape by control twice", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"conditions": [ | |
{ | |
"type": "variable_if", | |
"name": "invoke-escape", | |
"value": 1 |
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
body { | |
font-size: 16px; | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
letter-spacing: -0.001em; | |
line-height: 1.5; | |
-webkit-font-smoothing: antialiased; | |
text-rendering: optimizeLegibility; | |
} | |
@media (prefers-color-scheme: dark) { |
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 autoupdategist | |
map <C-h> :execute <Delete> | |
map <C-a> beginningOfLine | |
map <C-u> scrollPageUp | |
map <C-d> scrollPageDown | |
map u lastClosedTab | |
iunmap <C-k> |
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
declare -i i=1 | |
for source in $(ls *mp3); do | |
n=${source%%.mp3} | |
mp3splt -o '@a-@t' -d ho/ -c ~/Desktop/EK_DU30F_20110614/du_${i}.cue $source | |
i=$((i + 1)) | |
done |
NewerOlder