Skip to content

Instantly share code, notes, and snippets.

Avatar

tz ✨ tzmartin

View GitHub Profile
@tzmartin
tzmartin / bibtext.md
Created March 20, 2021 15:59
Example Bibtext reference for a Github repository
View bibtext.md

Bibtex

If you find this code useful, please consider citing

@misc{[PROJECT ID],
    title={[PROJECT TITLE]},
    author={[LNAME, FNAME]},
    booktitle={GitHub},
 year={2021}
@tzmartin
tzmartin / show-hn.md
Created August 8, 2020 18:01
How to Submit a Show HN
View show-hn.md

How to Submit a "Show HN"

If you're sharing your own work and there's a way to try it out, put "Show HN" in the title. Make sure you've read the Show HN guidelines: https://news.ycombinator.com/showhn.html.

Posts without URLs get penalized, so when you submit, put your site in the URL field and leave the text field blank.

Add a comment to the thread giving the backstory of how you came to work on this, and explaining what's different about it. That tends to seed discussion in a good direction.

Include a clear statement of what your project is or does. If you don't, the discussion will consist of "I can't tell what this is". >

@tzmartin
tzmartin / wget-from-google-drive.md
Created July 24, 2020 14:41
Download files from Google Drive using wget in Jupyter or Colab
View wget-from-google-drive.md

Programmatically download files from a Google Drive link:

For large file run the following command with necessary changes in FILEID and FILENAME:

!wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt
@tzmartin
tzmartin / maker-workbench.md
Last active January 3, 2021 17:19
How To Build Your Own Maker Workbench
View maker-workbench.md

Maker Workbench

Archived from https://tinwhiskerz.com/2016/08/05/maker-workbench/

AUGUST 5, 2016

It can be tough working on a maker project if you don’t have a good space to work. Many times my electronics work surface was an ESD mat on the dining room table, but as my projects grew and my family grew I was under increasing pressure to find somewhere else to work. (Really it was the 3D printer that put my wife over the edge — rightfully so). I also didn’t want to have my electronics out in the garage which is my woodworking shop and full of saw dust.

The task of finding a decent place to work on electronics was more of a challenge than I expected. Lots of folks who left the dining room table seem to work on card tables or random repurposed Ikea tables and benches or purchase very expensive commercial electronics benches that are out of the range of most folks working part time as a maker. I knew there must be something in the middle that could be

@tzmartin
tzmartin / git-log.sh
Created December 8, 2018 16:46
Pretty git "railroad track" log report
View git-log.sh
git log --graph --pretty=\"format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset'\" --abbrev-commit --date=relative
@tzmartin
tzmartin / release-flow.md
Created October 19, 2018 21:06
Release Flow
View release-flow.md

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
View main.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
View uploader.go
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
View index.js
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
View Info.plist
<?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>