Skip to content

Instantly share code, notes, and snippets.

@yunga
yunga / Windows Softwares Bookmarks.md
Last active April 6, 2019 15:59
Links to software, chocolatey packages, alternativeto.net

Windows Softwares Bookmarks

For a Chocolatey cheat sheet, see this gist.

Software Keywords Chocolatey Package OS
.NET Core SDK development
@yunga
yunga / yeet.cpp
Created April 24, 2019 08:07
yEet yeett
#include <iostream>
#define yeet int
#define Yeet main
#define yEet std
#define yeEt cout
#define yeeT return
#define Yeeet (
#define yeeeT )
#define Yeeeet {
@yunga
yunga / getopt-std.pl
Created October 10, 2019 07:51 — forked from weibeld/getopt-std.pl
Reference example for using the Getopt::Std Perl module
use strict;
use warnings;
use feature qw(say);
use Getopt::Std;
# If set to true, exit script after processing --help or --version flags
$Getopt::Std::STANDARD_HELP_VERSION = 1;
our $VERSION = "0.1";
#------------------------------------------------------------------------------#
function linkHighlight() {
let colors = {
"HostBg": "#00F", "Host": "#FFF", "HostOut": "#000",
"DomainBg": "#808", "Domain": "#FFF", "DomainOut": "#000",
"OtherBg": "#F00", "Other": "#FFF", "OtherOut": "#000",
"WikiBg": "#FF0", "Wiki": "#000", "WikiOut": "#000",
};
let Hosts = {};
let Domains = {};
@yunga
yunga / latency.txt
Created February 20, 2020 10:09 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
#!/usr/bin/perl
# This filter changes all words to Title Caps, and attempts to be clever
# about *un*capitalizing small words like a/an/the in the input.
#
# The list of "small words" which are not capped comes from
# the New York Times Manual of Style, plus 'vs' and 'v'.
#
# 10 May 2008
# Original version by John Gruber:
@yunga
yunga / Some_Linux_Games.md
Created October 14, 2015 21:28
just some games i like...
@yunga
yunga / octal_x86.txt
Created February 21, 2022 07:47 — forked from seanjensengrey/octal_x86.txt
x86 is an octal machine
# source:http://reocities.com/SiliconValley/heights/7052/opcode.txt
From: mark@omnifest.uwm.edu (Mark Hopkins)
Newsgroups: alt.lang.asm
Subject: A Summary of the 80486 Opcodes and Instructions
(1) The 80x86 is an Octal Machine
This is a follow-up and revision of an article posted in alt.lang.asm on
7-5-92 concerning the 80x86 instruction encoding.
The only proper way to understand 80x86 coding is to realize that ALL 80x86
@yunga
yunga / The Coding Train.md
Created October 22, 2019 09:35
Playlists and videos from The Coding Train youtube channel