Skip to content

Instantly share code, notes, and snippets.

@zacharysyoung
zacharysyoung / a_main.go
Last active July 27, 2020 21:35
'The Go Programming Language', Exercise 1.4
// Exercise 1.4 from 'The Go Programming Language', by A Donovan and
// B Kernigham
//
// Zach Young
// 27 May, 2019
//
//Dup2 prints the count and text of lines that appear more than once
//in the input. It reads from stdin or from a list of named files.
package main
@zacharysyoung
zacharysyoung / make_test_gmails.go
Last active May 27, 2019 08:47
Permutate punctuation (dots) for test email name
package main
/*
Got the idea from https://learn.lytics.com/understanding/product-docs/lytics-javascript-tag/testing-and-verification#testing-audiences
Given an input of "test", makes:
[email protected]
[email protected]
[email protected]
@zacharysyoung
zacharysyoung / make_test_gmails.py
Last active May 24, 2019 17:30
Permutate punctuation for test GMails
#!/usr/bin/env python
import sys
"""
Got the idea from https://learn.lytics.com/understanding/product-docs/lytics-javascript-tag/testing-and-verification#testing-audiences
Given an input of "test", makes:
[email protected]
[email protected]
[email protected]