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.
View emacs-w-tensorflow-notes.md
Getting TensorFlow working for Org-mode notes in Emacs
Prerequisites:
- 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)
Steps:
- Activate tensorflow virtual env on command line
View tab.json
{ | |
"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", |
View spacebar-remap.json
{ | |
"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", |
View list_example.rb
require 'rubygems' | |
require 'state_machine' | |
class Item | |
attr_accessor :name, :description | |
state_machine :item_state, :initial => :available do | |
after_transition :available=> :completed, :do => :item_completed |
View ql-thoughts.sh
# 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 |
View create-ithoughts-file-link.el
;; 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")) |
View IoTPlatformNotes.md
Here are a few notes about interesting dev boards I have used for "Internet of Things (IoT)" projects.
The ESP8266
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.
Two nice boards are:
- Sparkfun Thing - this hookup guide also describes using phant.io, SparkFun's free online data storage service.
- Adafruit Huzzah
Additio
View gist:5691402
(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)))) |
View app_delegate.rb
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