Skip to content

Instantly share code, notes, and snippets.

tomoyat1 / styles.css
Created Nov 11, 2018
CSS Modules with snake-case class names and their TypeScript .d.ts files
View styles.css
.camelCase {
color: red;
.snake-case {
color: blue;
View linkerd-configmap.yml
apiVersion: v1
kind: ConfigMap
name: l5d-config
namespace: default
config.yaml: |-
port: 9990
tomoyat1 / charset-and-encoding.hs
Last active Oct 11, 2017
View charset-and-encoding.hs
{-# LANGUAGE OverloadedStrings #-}
import qualified Data.ByteString as BS
import qualified Data.Text as T
import qualified Data.Text.Encoding as T
import System.IO
foo :: T.Text
foo = "日本語"
main :: IO ()
tomoyat1 /
Created Aug 11, 2017
Script to extract cover art from music, organized as artist/album/track
for ar in ./*; do
if [ -d $ar ]; then
for al in $ar/*; do
alname=$(echo $al | cut -d'/' -f3)
firstfile=$al/$(ls $al | head -1)
echo "dir:\t\t$al"
echo "coverart:\t$coverart"
tomoyat1 / match-on-move.diff
Created Feb 27, 2017
Patch to make tyrannical match cilents to tags on clients moving to another screen
View match-on-move.diff
diff --git a/init.lua b/init.lua
index 4e2791a..0e94bdb 100755
--- a/init.lua
+++ b/init.lua
@@ -184,12 +184,14 @@ end
--Match client
local function match_client(c, forced_tags, hints)
-- Don't prevent tags from being drag and dropped between screens
+ --[[
if hints and hints.reason == "screen" then

Keybase proof

I hereby claim:

  • I am tomoyat1 on github.
  • I am tomoyat1 ( on keybase.
  • I have a public key whose fingerprint is D570 7665 12CC 1F48 E747 82EF 87DF A9C5 DC63 CBD0

To claim this, I am signing this object: