This file contains hidden or 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
(defcfg | |
;; ** For Linux ** | |
input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd") | |
;; input (device-file "/dev/input/by-id/usb-Matias_Ergo_Pro_Keyboard-event-kbd") | |
output (uinput-sink "KMonad output") | |
;; ** For Windows ** | |
;; input (low-level-hook) | |
;; output (send-event-sink) |
This file contains hidden or 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 | |
for commit in $(git rev-list --reverse --topo-order HEAD -- .) | |
do | |
sum=0 | |
for file in $(git ls-tree -r --name-only $commit) | |
do | |
if [[ $(git show $commit:./$file | file -ib -) =~ "text/" ]] | |
then | |
count=$(git show $commit:./$file | tr -d '[:space:]' | wc -c) |
This file contains hidden or 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
import hy | |
import hyz | |
hyz.main() |
This file contains hidden or 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
# Calico Version v2.6.3 | |
# https://docs.projectcalico.org/v2.6/releases#v2.6.3 | |
# This manifest includes the following component versions: | |
# calico/node:v2.6.3 | |
# calico/cni:v1.11.1 | |
# calico/kube-controllers:v1.0.1 | |
# This ConfigMap is used to configure a self-hosted Calico installation. | |
kind: ConfigMap | |
apiVersion: v1 |
This file contains hidden or 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
out/* |
This file contains hidden or 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
<!doctype HTML> | |
<html> | |
<head> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
<style> | |
svg { | |
width: 100%; | |
height: 200px; | |
} | |
rect { |
This file contains hidden or 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
import logging | |
import subprocess | |
import sys | |
import select | |
import shlex | |
from fcntl import fcntl, F_GETFL, F_SETFL | |
from os import O_NONBLOCK | |
from cStringIO import StringIO | |
logging.basicConfig(format="%(asctime)s %(out)3s %(prog)8s %(message)s", level=logging.DEBUG) |
This file contains hidden or 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
import logging | |
import subprocess | |
import shlex | |
from subprocess import Popen, PIPE | |
from threading import Thread | |
from Queue import Queue, Empty | |
logging.basicConfig(format="%(asctime)s %(out)3s %(prog)8s | %(message)s", level=logging.DEBUG) |
This file contains hidden or 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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<body> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script> | |
var data = [{col: "A", val: "one"}, | |
{col: "B", val: "two"}, | |
{col: "B", val: "three"}, | |
{col: "B", val: "four"}, |
This file contains hidden or 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
(require 'org-element) | |
(defun goto-notes () | |
(interactive) | |
(find-file "/home/lex/org/test.org") | |
(org-goto-subtree '("a" "b" "q" "h")) | |
(org-show-context) | |
(org-show-entry) | |
(show-children)) | |
(defun org-goto-subtree (path) |
NewerOlder