Skip to content

Instantly share code, notes, and snippets.

View Aadithya-V's full-sized avatar
💭
What I cannot create, I do not understand sufficiently..

Aadithya V Aadithya-V

💭
What I cannot create, I do not understand sufficiently..
View GitHub Profile
@Aadithya-V
Aadithya-V / eqBinaryTree.go
Last active May 12, 2023 16:48
Equivalence Of Binary Trees- using concurrency of Go; Go Tour Exercise
package main
import (
"fmt"
"sync"
"golang.org/x/tour/tree"
)
// Walk walks the tree t sending all values
@Aadithya-V
Aadithya-V / webcrawler.go
Last active November 24, 2022 10:40
Go Tour Web Crawler Exercise Solution
package main
import (
"fmt"
"sync"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.
@MicahParks
MicahParks / go get private GitLab with group and subgroup (Golang modules).md
Last active January 12, 2024 05:43
go get private GitLab with group and subgroup (Golang modules)

Problem

The go command line tool needs to be able to fetch dependencies from your private GitLab, but authenticaiton is required.

This assumes your private GitLab is hosted at privategitlab.company.com.

Environment variables

The following environment variables are recommended:

export GO111MODULE=on
export GOPRIVATE=privategitlab.company.com
@mavieth
mavieth / domains.json
Created January 25, 2020 18:19
Common Email Domains
[
"aol.com",
"att.net",
"comcast.net",
"facebook.com",
"gmail.com",
"gmx.com",
"googlemail.com",
"google.com",
"hotmail.com",
https://accounts.google.com/signin/v2/sl/pwd?
service=mail
&hl=en
&uilel=1
&continue=https://www.gmail.com
@ammarshah
ammarshah / all_email_provider_domains.txt
Last active June 27, 2024 14:16
A list of all email provider domains (free, paid, blacklist etc). Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
0-mail.com
007addict.com
020.co.uk
027168.com
0815.ru
0815.su
0clickemail.com
0sg.net
0wnd.net
0wnd.org
@jboner
jboner / latency.txt
Last active June 27, 2024 14:47
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