Skip to content

Instantly share code, notes, and snippets.

View ripesunflower's full-sized avatar
😴

ripesunflower ripesunflower

😴
  • Russia, Saint-Petersburg
View GitHub Profile
@byBretema
byBretema / OpenWithSublimeText3.bat
Last active March 23, 2024 01:19 — forked from cstewart90/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 10)
@echo off
SET st3_path=C:\Program Files\Sublime Text 3\sublime_text.exe
SET st3_label=Open with SublimeText3 !
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "%st3_label%" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3_path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3_path% \"%%1\"" /f
rem add it for folders
@tuscen
tuscen / Lists.md
Last active November 19, 2015 13:06
Implementation of pairs and lists using closures

Pairs

pair = cons(1, 2) # => Proc
pair.call(:car) == car(pair) == 1
pair.call(:cdr) == cdr(pair) == 2

Lists