⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
package gcv_test | |
import ( | |
"encoding/base64" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" |
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
## | |
## WPS on OpenWRT | |
## This script enables Wi-Fi Protected Setup on OpenWRT. | |
## | |
## Resources | |
## http://wiki.openwrt.org/doc/uci/wireless#wps.options | |
## | |
#Install the full wpad package | |
opkg update |
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
Hardware Perspective | |
-------------------- | |
* It is look like that Lenovo has aggregated bunch of sensors into one USB HID Device, this will be `2047:0855 Texas Instruments`. | |
* This device has a big HID descriptor which report each sensor using `Usage Page 05 20 - Sensor Page (0x20)` | |
* There are 8 reports in the descriptor, for each report there is a bit map of the sensor properties: | |
``` | |
Usage 0A 09 03 - Property: Sensor Connection Type | |
Usage 0A 16 03 - Property: Reporting State | |
Usage 0A 19 03 - Property: Power State |
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
;; Needs terminal-notifier (brew install terminal-notifier) | |
(defun notify-osx (title message) | |
(call-process "terminal-notifier" | |
nil 0 nil | |
"-group" "Emacs" | |
"-title" title | |
"-sender" "org.gnu.Emacs" | |
"-message" message)) | |
;; org-pomodoro mode hooks |
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
package main | |
import ( | |
auth "github.com/abbot/go-http-auth" | |
"github.com/gorilla/mux" | |
"log" | |
"net/http" | |
"time" | |
) |