Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

local awful = require('awful')
local beautiful = require('beautiful')
local gears = require('gears')
local json = require('util.json')
local confdir = gears.filesystem.get_configuration_dir()
local icons = require('theme.icons').taglist
-- File
@whilei
whilei / Lua-Closures.lua
Created December 25, 2022 21:08 — forked from tbrunz/Lua-Closures.lua
A simple Lua app to demonstrate the principles of lexical closures
#! /usr/bin/env lua
--
-- A simple Lua app to demonstrate the principles of lexical closures.
--
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
--
@whilei
whilei / SpaceVim.md
Created December 9, 2022 19:20 — forked from bespokoid/SpaceVim.md
SpaceVim cheatsheet #tools
@whilei
whilei / fancy_taglist.lua
Created May 27, 2021 01:04 — forked from intrntbrn/fancy_taglist.lua
awesomewm fancy_taglist: a taglist that contains a tasklist for each tag
-- awesomewm fancy_taglist: a taglist that contains a tasklist for each tag.
-- Usage:
-- 1. Save as "fancy_taglist.lua" in ~/.config/awesome
-- 2. Add a fancy_taglist for every screen:
-- awful.screen.connect_for_each_screen(function(s)
-- ...
-- local fancy_taglist = require("fancy_taglist")
-- s.mytaglist = fancy_taglist.new({ screen = s })
-- ...
@whilei
whilei / go-os-arch.md
Created March 14, 2021 15:54 — forked from asukakenji/0-go-os-arch.md
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.14.7 darwin/amd64.

A list of valid GOOS values

(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)

  • aix
  • android
@whilei
whilei / doom.txt
Created March 11, 2021 19:45 — forked from hjertnes/doom.txt
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
Prerequisites
=============
- One Pinephone braveheart edition
- A micro SIM card or Nano sim with micro adapter
- A micro SD card (tested with SanDisk Ultra microSDXC UHS-1 64G)
- A 5V power adapter with regular usb connector (15 Watts recommended. 5V/3 amp)
- A Linux desktop/laptop to prepare the SD card (laptop used in this tutorial)
Preparation
@whilei
whilei / irc.md
Created March 9, 2021 12:31 — forked from xero/irc.md
irc cheat sheet

IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
  • Leaves the specified channel.
@whilei
whilei / .block
Created February 19, 2021 00:04 — forked from clhenrick/.block
Custom tiles in Google Maps
license: apache-2.0
// Code generated by go-openrpc. DO NOT EDIT.
/*
Copyright © 2019 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0