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
const c = require("child_process") | |
const workspaces = JSON.parse( | |
c.execSync("swaymsg -t get_workspaces", { encoding: "utf8" }) | |
) | |
const ws = workspaces.find((x) => x.focused) | |
const win = ws.floating_nodes.find((x) => x.focused) |
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
#!/usr/bin/env ruby | |
require 'shellwords' | |
require 'open3' | |
require 'pry-rails' | |
if ARGV.length < 2 | |
case ARGV[0] | |
when nil, "--help" | |
puts "Usage: youtube-playlist-split.rb AUDIO_FILE PLAYLIST_FILE |
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
#!/usr/bin/env ruby | |
# | |
require 'date' | |
require 'json' | |
require 'curb' | |
require 'pry' | |
puts "Report generated #{DateTime.now.strftime("%Y-%m-%d at %I:%M %p %z")}" | |
puts |
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
select | |
(count(*) filter (where confirmed) * 100.0 / nullif(count(*),0) ) | |
from foobar; |
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
$ cabal update | |
Config file path source is default config file. | |
Config file /home/d/.cabal/config not found. | |
Writing default configuration to /home/d/.cabal/config | |
Downloading the latest package list from hackage.haskell.org | |
$ cabal install MissingH xmonad xmonad-contrib xmonad-utils taffybar gtk2hs-buildtools | |
Resolving dependencies... | |
Downloading X11-1.8... | |
Downloading blaze-builder-0.4.0.2... |
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
$ cabal install MissingH xmonad xmonad-contrib xmonad-utils taffybar gtk2hs-buildtools | |
hResolving dependencies... | |
Downloading data-default-instances-containers-0.0.1... | |
Downloading data-default-instances-dlist-0.0.1... | |
Configuring hashtables-1.2.1.1... | |
Configuring data-default-instances-dlist-0.0.1... | |
Downloading data-default-instances-old-locale-0.0.1... |
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
Jack Collom's "12-21-94" | |
Crazy writings on the mottled, lighted sky, | |
Romantic slate, are trees, bare, ruined choirs | |
Perhaps but also branch essentials. Why | |
Question their configures, their live wires | |
To us all, this morning? Sheer potential | |
Holds the sky in fragments - actualized |
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
EBEGAE capo 2 | |
E -----------------------------------------2------------------------------------------------------------------------------------------------------------------- | |
A ---------0---------------0-----------------0----------------------------------------------------------------------------------------------------------------- | |
G#------0----0---0------0---0--0------0--------0-------------------------------------------------------------------------------------------------------------- | |
E -------0-----0---------0---0----------0--------0------------------------------------------------------------------------------------------------------------- | |
B ----2---------------2-------------2-------------------------------------------------------------------------------------------------------------------------- | |
E --2---------------2-------------0--------------------- |
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
-- Compiler flags -- | |
{-# LANGUAGE NoMonomorphismRestriction, FlexibleInstances, MultiParamTypeClasses, TypeSynonymInstances, FlexibleContexts #-} | |
-- Imports -- | |
-- stuff | |
import XMonad | |
import Control.Monad (msum, when) | |
import qualified XMonad.StackSet as W | |
import qualified Data.Map as M | |
import System.Exit |
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
-- Compiler flags -- | |
{-# LANGUAGE NoMonomorphismRestriction #-} | |
-- Imports -- | |
-- stuff | |
import XMonad | |
import Control.Monad (msum, when) | |
import qualified XMonad.StackSet as W | |
import qualified Data.Map as M | |
import System.Exit |
NewerOlder