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
/** | |
* Original code: http://forum.hobbycomponents.com/viewtopic.php?f=73&t=1781 | |
* | |
* | |
* This is an example of how to use the Hobby Components 16 key capacitive touch | |
* keypad (HCMODU0079). This example sketch will read the current state of the | |
* of the keypad and if a key is pressed output its key number to the serial port. | |
* | |
* The sketch assumes that the keypad is configured to 16 key active low mode | |
* by shorting pads P1-3 and P1-P4 together (see schematic or sport forum for more |
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
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses, DeriveDataTypeable, TypeSynonymInstances, PatternGuards #-} | |
module Anekos.Lib.MyGaps ( | |
MyGaps(..), | |
myGaps | |
) where | |
import XMonad | |
import Graphics.X11 (Rectangle(..)) |
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 | |
set -euC | |
# exec 5> /tmp/xmosh/shell-script-debug.out | |
# BASH_XTRACEFD="5" | |
# PS4='$LINENO: ' | |
# set -x | |
if [ "$#" -lt 1 ] |
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 | |
# set -x | |
DZEN_OPTIONS=(-dock -x 1920 -y 0 -w 1920 -ta c -h 20 -fg 'white' -fn 'VL Gothic') | |
cmd="$1" |
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
// http://www.iconshock.com/flat-icons/general-icons/audio-volume-none-icon | |
// https://www.svgrepo.com/svg/47144/air-conditioner | |
// https://www.flaticon.com/packs/characters-and-numbers | |
// https://github.com/Lange/node-elgato-stream-deck | |
// https://github.com/joshmarinacci/node-pureimage | |
const FS = require('fs'); | |
const HTTP = require('http'); | |
const PImage = require('pureimage'); | |
const Path = require('path'); |
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
function s:invert(...) | |
let &background = &background ==# 'light' ? 'dark' : 'light' | |
endfunction | |
call timer_start(10, function('s:invert'), {'repeat': -1}) |
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
function f() { | |
return v; | |
var v; | |
} | |
function g() { | |
if (false) { var v } | |
return v; | |
} |
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
#!/usr/bin/ruby | |
# vim: set fileencoding=utf-8 : | |
def foo﹣bar | |
puts('I am lisp') | |
end | |
foo﹣bar |
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
(ns {{_expr_:join(split(substitute(expand('%:r'), '_', '-', 'g'), '/')[1 :], '.')}} | |
(:require [clojure.string :as string])) |
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
function! s:long_cat (n) | |
let l:top = copy([ | |
\ ' /\___/\', | |
\ ' / \', | |
\ ' | o o |', | |
\ ' \ # |', | |
\ ' \ _|_ /', | |
\ ' / \______', | |
\ ' / _______ ___ \', | |
\ ' |_____ \ \__/', |