Skip to content

Instantly share code, notes, and snippets.

View tzmartin's full-sized avatar
🏴‍☠️
ahoy!

tz ✨ tzmartin

🏴‍☠️
ahoy!
View GitHub Profile
@tzmartin
tzmartin / release-flow.md
Created October 19, 2018 21:06
Release Flow

Release Flow


git log                 engineers
  ↳ Engineering Notes     ↳ eng managers
    ↳ Release Notes         ↳ product manager
      ↳ Blog Post             ↳ solution managers
        ↳ $$$$                  ↳ customers
@tzmartin
tzmartin / main.go
Created March 17, 2018 15:12
Simple static server in go
package main
import (
"fmt"
"log"
"net/http"
"os"
)
func printRecovery() {
@tzmartin
tzmartin / uploader.go
Created September 21, 2017 13:40 — forked from TheGU/uploader.go
Golang to upload file to google drive with progress bar using Google API
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
"os"
@tzmartin
tzmartin / index.js
Created September 19, 2017 10:41
This repository contains two examples of how to use linux-icons with Electron for tray icons. Source: linux-icons-electron-example
const {
app,
Tray,
Menu,
BrowserWindow,
nativeImage
} = require('electron')
const icons = require('linux-icons')
let win
@tzmartin
tzmartin / Info.plist
Created June 24, 2017 19:31 — forked from nathankerr/Info.plist
Registering a Go app as a protocol handler under Mac OS X
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>myapp</string>
<key>CFBundleIdentifier</key>
<string>com.pocketgophers.myapp</string>
<key>CFBundleURLTypes</key>
<array>
@tzmartin
tzmartin / popcornjs.demos.md
Created June 20, 2017 06:18
PopcornJS Demo

PopcornJS Demos

Mozilla no longer maintains PopcornJS and the demos are no longer on the site. Here are the previously listed demos for posterity:

A slideshare deck synchronized with a Youtube video

[demo]

@tzmartin
tzmartin / gitsubmodules.md
Last active January 3, 2021 17:23
Say NO to Git Submodules

I really don't like submodules in Git. There's a much better way:

$ git remote add -f svbhack https://github.com/gfidente/pelican-svbhack.git
$ git merge -s ours --no-commit svbhack/master
$ git read-tree --prefix=themes/svbhack -u svbhack/master
$ echo "THEME = 'themes/svbhack'" > pelicanconf.py
$ git commit -m 'Import svbhack theme'
@tzmartin
tzmartin / ml-datasets.md
Last active January 3, 2021 17:23
Datasets for machine learning

Image datasets

Dataset Training Set Size Testing Set Size Number of Classes Comments
Flowers 2500 2500 5 Various sizes (source: Flickr)
Cifar10 60k 10k 10 32x32 color
MNIST 60k 10k 10 28x28 gray
ImageNet 1.2M 50k 1000 Various sizes
MSCOCO 80k 40k 80 Various sizes
@tzmartin
tzmartin / competitive-analysis.md
Last active March 26, 2017 19:00
Emperically analyzing a competitor, business or person

Competitive Analysis Process

Note: this is a live doc

Define Profile

Open-source intelligence (OSINT)

Extract intel on domain / email / username / phone with OSINT tools.

@tzmartin
tzmartin / latency.txt
Created March 14, 2017 20:25 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
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