The touchpad doesn't work out of the box, do:
sudo su
echo 'blacklist i2c_hid' >> /etc/modprobe.d/blacklist.conf
depmod -a
update-initramfs -uAnd reboot, and you are good to go.
| require "httparty" | |
| require 'json' | |
| url = "https://hypothes.is/api/search?wildcard_uri=https://blog.oyanglul.us/*&sort=created" | |
| HEADER = <<-EOXML | |
| <?xml version="1.0"?> | |
| <rss version="2.0" | |
| xmlns:atom="http://www.w3.org/2005/Atom" | |
| xmlns:dc="http://purl.org/dc/elements/1.1/"> | |
| <channel> |
| ;;; runs eslint --fix on the current file after save | |
| ;;; alpha quality -- use at your own risk | |
| (defun eslint-fix-file () | |
| (interactive) | |
| (message "eslint --fixing the file" (buffer-file-name)) | |
| (shell-command (concat "eslint --fix " (buffer-file-name)))) | |
| (defun eslint-fix-file-and-revert () | |
| (interactive) |
| TRAVIS_TEST_RESULT=0 | |
| TRAVIS_COMMIT=e7090ffc4ef844d1a066a34037c913b429d7dc2a | |
| TRAVIS_OS_NAME=linux | |
| TRAVIS_LANGUAGE=node_js | |
| TRAVIS=true |
| ss=%w{JP OYJC欧阳继超 FJ冯佳 SC孙晨}.sort | |
| pairs=[] | |
| ss.each do |e1| | |
| ss.each do |e2| | |
| if e1 != e2 | |
| pairs<<[e1,e2].sort unless pairs.include?([e1,e2].sort) | |
| end | |
| end | |
| end |
| (function(global) { | |
| var types = function(obj) { | |
| throw new TypeError("fmap called on unregistered type: " + obj); | |
| }; | |
| // inefficient as hell, but as long as there aren't too many types.... | |
| global.Functor = function(type, defs) { | |
| var oldTypes = types; | |
| types = function(obj) { | |
| if (type.prototype.isPrototypeOf(obj)) { |
| macro sexp { | |
| case () => { | |
| ; | |
| } | |
| case ($p) => { | |
| $p | |
| } | |
| case ($x $y) => { | |
| $x($y); | |
| } |
| macro $do { | |
| case { $y:expr } => { | |
| $y | |
| } | |
| case { $x:ident <- $y:expr $rest ... } => { | |
| λ['>=']($y, function($x) { | |
| return $do { $rest ... } | |
| }); | |
| } | |
| } |