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
;; Disable mouse on typing | |
(defvar jogo3000/mouse-disabled nil) | |
(use-package disable-mouse) | |
(defun jogo3000/disable-mouse () | |
"Disable mouse." | |
(setq jogo3000/mouse-disabled t) | |
(global-disable-mouse-mode t)) | |
(defun jogo3000/enable-mouse () |
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
(ns github | |
(:require | |
[joker.http :as h] | |
[joker.json :as j])) | |
(defonce url "https://api.github.com/repos/candid82/joker/commits") | |
(defn get-commits | |
[] | |
(j/read-string (:body (joker.http/send {:url url})))) |
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
# see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/ | |
# core | |
brew install coreutils | |
# key commands | |
brew install binutils | |
brew install diffutils | |
brew install ed --default-names | |
brew install findutils --with-default-names |
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
#!/bin/bash | |
function addnext { | |
NUM=$1 | |
sleep 1 | |
echo HI $NUM | |
NUM=$(expr $NUM + 1) | |
echo addnext $NUM >> $0 | |
} |