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(){ | |
| let targetLang = "ja"; // target lang to translate into | |
| let alternativeLang = "en"; // if given word is in targetLang, use this instead as a target lang | |
| function translate(word, target, next) { | |
| next("", "", " getting..."); | |
| const base = "https://www.googleapis.com/language/translate/v2?key=%s&q=%s&target=%s"; | |
| const apikey = "AIzaSyBq48p8NhFgaJ1DfUJ5ltbwLxeXpjEL86A"; | |
| let ep = util.format(base, apikey, encodeURIComponent(word), target); | |
| util.httpGet(ep, false, function (res) { | |
| if (res.status === 200) { |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
| "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00 |
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
| /etc/xdg/autostart: | |
| total used in directory 100K available 31083864 | |
| drwxr-xr-x 2 root 4.0K 2010-12-17 15:25 ./ | |
| drwxr-xr-x 9 root 4.0K 2011-01-30 18:30 ../ | |
| -rw-r--r-- 1 root 415 2010-07-08 00:07 at-spi-registryd.desktop | |
| -rw-r--r-- 1 root 356 2010-04-09 20:15 bluetooth-applet.desktop | |
| -rw-r--r-- 1 root 319 2010-04-14 19:54 evolution-alarm-notify.desktop | |
| -rw-r--r-- 1 root 481 2010-04-11 21:50 gdu-notification-daemon.desktop | |
| -rw-r--r-- 1 root 524 2010-04-29 17:05 gnome-at-session.desktop | |
| -rw-r--r-- 1 root 539 2010-06-25 19:44 gnome-keyring-pkcs11.desktop |
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
| Section "InputClass" | |
| Identifier "Wacom class" | |
| # WALTOP needs a patched kernel driver, that isn't in mainline lk yet, | |
| # so for now just let it fall through and be picked up by evdev instead. | |
| # MatchProduct "Wacom|WALTOP|WACOM" | |
| MatchProduct "Wacom|WACOM|Hanwang" | |
| MatchDevicePath "/dev/input/event*" | |
| Driver "wacom" | |
| EndSection |
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
| ;;; scratch バッファがいらない気がしたので、下記のコードを削除し、別ファイルのkill scratchを追加した | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; scratch buffer | |
| ;; http://blog.lifeflow.jp/2010/02/emacs-scratch.html | |
| (defun save-scratch-buffer () | |
| "Save scratch buffer. Return nil if buffer is not modified." | |
| (interactive) | |
| (when (get-buffer "*scratch*") |
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
| shutdown.exe | Shutdown | |
| >-s | Now | |
| >-r | Reboot | |
| >-h | Hibernate | |
| rundll32.exe | Lock | |
| >user32.dll,LockWorkStation |
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
| (defun my-dired-diff () | |
| "" | |
| (interactive) | |
| (let ((files (dired-get-marked-files nil nil nil t))) | |
| (if (eq (car files) | |
| t) | |
| (diff (cadr files) (dired-get-filename)) | |
| (message "One files must be marked!")))) |
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
| $ __my_svn_ps1 [SVN:%s] |
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
| // Info | |
| let PLUGIN_INFO = | |
| <KeySnailPlugin> | |
| <name>Firefox addon manager</name> | |
| <description>Firefox addon manager</description> | |
| <description lang="ja">Firefox のアドオン管理</description> | |
| <updateURL>https://raw.github.com/gist/1011984/firefox-addon-manager.ks.js</updateURL> | |
| <iconURL>https://sites.google.com/site/958site/Home/files/firefox-addon-manager.ks.png</iconURL> | |
| <author>958</author> |
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
| <!-- window control --> | |
| <keybind key="A-Return"> | |
| <action name="ToggleFullscreen" /> | |
| </keybind> | |
| <!-- desktop switching --> | |
| <keybind key="A-Left"> | |
| <action name="GoToDesktop"> | |
| <to>left</to> | |
| <wrap>yes</wrap> | |
| </action> |