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
// Apple clang version 14.0.0 (clang-1400.0.29.202) | |
// Target: arm64-apple-darwin22.3.0 | |
#include <algorithm> | |
#include <any> | |
#include <array> | |
#include <atomic> | |
#include <barrier> | |
#include <bit> | |
#include <bitset> |
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
// Generate iterm2 theme from RGB hex colors. | |
// | |
// The Golang main file reads rgb hex colors from stdin and produces iterm2 theme to stdout. | |
// | |
// The usage example of dark variant of https://github.com/navarasu/onedark.nvim: | |
// | |
// cat <<EOF | go run generate-iterm2-theme.go >> onedark.itermcolors | |
// #282c34 | |
// #abb2bf | |
// #181a1f |
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
package main | |
import "fmt" | |
// Array operations in Golang. | |
// | |
// Note: a generic `array` term is using, however all operation involve go | |
// slice, which is a reference to an underline 'real' array. | |
func main() { |
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 bash | |
# | |
# Author: Elijah Danko ([email protected]) | |
# License: MIT | |
# | |
# Change font on Adwaita gnome-shell theme using gresource. | |
# You can adapt the script to adjust whatever you want. | |
# | |
# Tested on archlinux gnome-shell 3.34.2. | |
# Make sure that `gresource` and `glib-compile-resources` are located in the path. |
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
// The purpose of this source file is to compare transmittion speed of two | |
// built-in RPCs servers, namely Gob and Json by using blocking calls. | |
package main | |
import ( | |
"net" | |
"net/rpc" | |
"net/rpc/jsonrpc" | |
"testing" |
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
#!/bin/sh | |
# | |
# Use of this source code is governed by a BSD-style | |
# license that can be found in the LICENSE file. | |
# | |
# To use, store as .git/hooks/pre-commit inside your repository and make sure | |
# it has execute permissions. | |
# | |
# This script does not handle file names that contain spaces. | |
# The script is adopted version of |