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 dotspacemacs/user-config () | |
"Configuration for user code: | |
This function is called at the very end of Spacemacs startup, after layer | |
configuration. | |
Put your configuration code here, except for variables that should be set | |
before packages are loaded." | |
(defun hex-to-list (hex) | |
(mapcar (lambda (z) | |
(number-to-string (string-to-number z 16))) | |
(mapcar (lambda (y) |
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
# Rust binaries | |
export PATH="$HOME/.cargo/bin:$PATH" | |
# Flutter | |
export PATH="$HOME/flutter/bin:$PATH" | |
# Dart SDK | |
export PATH="$HOME/flutter/bin/cache/dart-sdk/bin:$PATH" | |
# Dart binaries | |
export PATH="$PATH":"$HOME/.pub-cache/bin" |
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
# Refreshes the mpd song list | |
function mpdupdate() { | |
sudo killall mpd | |
rm ~/.mpd/mpd.log && rm ~/.mpd/mpdstate && rm ~/.mpd/mpd.db | |
mpd && sleep 30 | |
# mpc ls | grep "^[A-Z]" | mpc add | |
} | |
alias mpcupdate="mpdupdate" | |
alias music="mpd; ncmpcpp" |
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
function readPosX(stream, acc) { | |
let val = stream.substr(0, 2); | |
acc.posX = val; | |
return stream.substr(2); | |
} | |
function readPosY(stream, acc) { | |
let val = stream.substr(0, 2); | |
acc.posY = val; | |
return stream.substr(2); |