Skip to content

Instantly share code, notes, and snippets.

View pcoutin's full-sized avatar

Pedro L C pcoutin

View GitHub Profile
@kborling
kborling / configuration.nix
Created December 24, 2021 23:59
NixOS Configuration (Sway/Wayland Enabled)
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
@lambda-mike
lambda-mike / kakoune_cheatsheet.md
Last active July 11, 2023 23:49
My Kakoune cheatsheet

Kakoune

set verbose mode (good for learning) :set -add global autoinfo normal

Movement

Goto

10g - go to line 10

We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
804341497441255424
3240985277
491532627
4556567547
4815201574
55217069
1027567260012097537
256491073
17173775
33861425
@noelbundick
noelbundick / LICENSE
Last active May 16, 2024 21:09
Exclude WSL installations from Windows Defender realtime protection
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@thepont
thepont / i3.config
Created July 24, 2016 23:22
Gruvbox style i3 config
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:Ubuntu Mono 10
@themattchan
themattchan / DFA.hs
Last active November 15, 2015 04:29
{- LANGUAGE TupleSections -}
import Control.Monad
import qualified Data.Set as S
--type State = String
type Symbol = Char
data DFA st = DFA { states :: [st],
alphabet :: [Symbol],
delta :: st -> Symbol -> st,
startSt :: st
@themattchan
themattchan / SEXPRS FTW
Last active November 15, 2015 04:29
fuck xml.
#lang racket
(require xml)
(require xml/xexpr)
(define to-html (compose display
xexpr->string))
(define CONFIGS '((siteName "Andromeda")
(latitude 1234.567)
#lang racket
#|
Simplified SXML grammar
<Element> ::= (<Symbol> <Children>...)
| (<Symbol> <AttribList> <Children>...)
<Children> ::= <Element> | <Value>
<AttribList> ::= (<Attribute> ...) | (@ <Attribute> ...)
@kachayev
kachayev / concurrency-in-go.md
Last active March 11, 2024 11:27
Channels Are Not Enough or Why Pipelining Is Not That Easy
@staltz
staltz / introrx.md
Last active May 23, 2024 20:07
The introduction to Reactive Programming you've been missing