Small change to Client side searching for Hugo.io with Fuse.js to allow the search to proceed dynamically as the user types the query.
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
{ | |
"title": "Change tab key", | |
"rules": [ | |
{ | |
"description": "Change tab key to command+control+option+shift. (Post tab key when pressed alone)", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "tab", |
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
{ | |
"title": "Change spacebar", | |
"rules": [ | |
{ | |
"description": "Change spacebar to right-option if pressed with other keys (Post spacebar when pressed alone)", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "spacebar", |
- Python 3
- Emacs
- Emacs ob-ipython package installed (https://github.com/gregsexton/ob-ipython)
- TensorFlow installed using virtualenv technique (https://www.tensorflow.org/install/install_mac)
- Activate tensorflow virtual env on command line
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
# qlmanager is used to open quicklook view of a file from command line. | |
# see http://www.quicklookplugins.com/ for more plugins | |
# an alias to create a simple command to olen a quicklook view in background, showing no terminal messages | |
alias ql='function _qlfunc(){ qlmanage -p $@ >/dev/null 2>&1 &};_qlfunc' | |
# I use this to save png files using qlmanager into an images directory inside my org-mode notes dir. | |
# I use a lisp function that calles this comand when org-links are added to notes so I get a nice embedded png view | |
# of the file being linked to. Requires plugin for file type that creates png's | |
# I use for mindmaps, stl files, etc so canshow quicklook inside emacs org-mode for linked files |
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
;; emacs org-mode function | |
;; to add a link to ithoughtsX mindmap file | |
;; main purpose is capability to automatically create the file if it doesn't exist | |
;; also adds file extension to name as I never remember the extension correctly | |
;; mapped to a hyperkey based key mapping (I remapped my long-press tab as a hyperkey) | |
(defun create-ithoughts-file-link () | |
(interactive) | |
(let ((filename (concat (read-string "Enter a name:") ".itmz")) |
Here are a few notes about interesting dev boards I have used for "Internet of Things (IoT)" projects.
The ESP8266 was developed as a wifi board, but its integrated micro controller makes it an interesting platform for lots of uses. By adding the Arduino Core you can program it using the Arduino environment. I have used ESP8266 on a number of projects successfully. It is a bit power hungry because of the wifi, but it has support for sleep mode between sensor readings and broadcasts that can prolong battery life. If the IoT device is connected to power then this is an easy choice, as it is so low cost, and wifi makes it easy to push data to a server.
- Sparkfun Thing - this hookup guide also describes using phant.io, SparkFun's free online data storage service.
- Adafruit Huzzah
- Plug both micro USB cables from Edison Dev board into linux pc, no power wall wart needed
- open a terminal and type sudo screen /dev/ttyUSB0 115200
- reset edison using reset button
- keep hitting a key until stop boot at a boot prompt
- type run do_flash
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
(defun quick-copy-line () | |
"Copy the whole line that point is on and move to the beginning of the next line. | |
Consecutive calls to this command append each line to the | |
kill-ring." | |
(interactive) | |
(let ((beg (line-beginning-position 1)) | |
(end (line-beginning-position 2))) | |
(if (eq last-command 'quick-copy-line) | |
(kill-append (buffer-substring beg end) (< end beg)) | |
(kill-new (buffer-substring beg 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
def init_restkit_logging | |
#define RKLogLevelOff -> RKlcl_vOff | |
#define RKLogLevelCritical -> RKlcl_vCritical | |
#define RKLogLevelError -> RKlcl_vError | |
#define RKLogLevelWarning -> RKlcl_vWarning | |
#define RKLogLevelInfo -> RKlcl_vInfo | |
#define RKLogLevelDebug -> RKlcl_vDebug | |
#define RKLogLevelTrace -> RKlcl_vTrace | |
# "restkit" "RestKit" |
NewerOlder