Skip to content

Instantly share code, notes, and snippets.

@hungqd
hungqd / arch_linux_installation_guide.md
Created September 16, 2025 00:58 — forked from mjkstra/arch_linux_installation_guide.md
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@hungqd
hungqd / arch-i3gaps-install.md
Created November 21, 2022 14:39 — forked from fjpalacios/arch-i3gaps-install.md
Arch + i3-gaps Install Guide

Arch + i3-gaps Install Guide

First set up your keyboard layout. For example, in Spanish:

   # loadkeys es

For a list of all acceptable keymaps:

   # localectl list-keymaps

Keybase proof

I hereby claim:

  • I am hungqd on github.
  • I am hungdang (https://keybase.io/hungdang) on keybase.
  • I have a public key ASC20aDXxNHMjdj-dzAhty5mzPFY3RzQNpfVcajXdmmD5Qo

To claim this, I am signing this object:

@hungqd
hungqd / Voucher.kt
Last active September 8, 2019 13:37
Voucher buying
import java.util.stream.IntStream
import kotlin.math.sqrt
import kotlin.streams.toList
/**
* i: number of 3$ voucher
* j: number of 5$ voucher
* k: number of 10$ voucher
*/
data class VoucherSet(val i: Int, val j: Int, val k: Int)
@hungqd
hungqd / fibonacci-closure.go
Created May 24, 2019 09:46
Fibonacci in Golang using closure
package main
import "fmt"
// fibonacci is a function that returns
// a function that returns an int.
func fibonacci() func() int {
var(
first = 0
second = 1
@hungqd
hungqd / isolate.dart
Created March 13, 2019 06:25
Dart's Isolate example
import 'dart:io';
import 'dart:isolate';
void main() async {
Isolate.spawn<int>(foo, 1);
Isolate.spawn<int>(foo, 2);
Isolate.spawn<int>(foo, 3);
Isolate.spawn<int>(foo, 4);
Isolate.spawn<int>(foo, 5);
sleep(Duration(seconds: 5));