Instantly share code, notes, and snippets.

View splice-tech-values.md

Splice tech values

Rational, Collaborative, Excellent

Communication

  • Explicit > implicit
  • Over communicating > under communicating
  • We look at problems as opportunities
  • We are consistent in communication
View main.go
/*
You need to have Go installed and make sure your $GOPATH is set.
Then, install echo by running:
go get -u github.com/labstack/echo
Finally run:
go run main.go
Where main.go is this file.
It will start the server on port 8080
You can now query your server using curl:
View school-immigration.md

Dear SMMUSD parents and guardians,

We understand that the heated rhetoric used during the recent presidential election has left some of our students and families feeling anxious and afraid. We are aware that in our district, as in others, there is significant fear about how potential changes in immigration law and enforcement may affect some of our students and families. The Santa Monica-Malibu Unified School District remains steadfastly dedicated to maintaining positive school climates that promote student learning and development. School counselors are available at school for students who are feeling overwhelmed or fearful.

Our district is committed to the education and welfare of students from all backgrounds. We want to ensure that our families are aware of current practices and policies that are in place with respect to maintenance or protection of data related to immigration status and federal enforcement. We will be exploring, along with other school districts and governmental entities

View adc.txt
+----------------------------------------------+
| |
| +----------------------+ +------------+ |
+---------------+ +--------------------+ | | | | | |
| | | +----->| 1 0 1 1 1 0 0 1 0 1 0+-->| Processing | |
| +-------->+ | | | | | | |
| Voice | | Analog to Digital | | | 0 1 1 0 0 1 0 1 1 0 1|<--+ | |
| | | |<-----+ | | | |
+---------------+ +-------+------------+ | +----------------------+ +------------+ |
| | |
View gist:11b01f99eb22caceddb46cb51e926255
{
/*
// Place your snippets for Go here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
View chezrenee.go
// example of parallelism
package main
import (
"flag"
"fmt"
"io"
"os"
"sync"
"time"
View gist:bc9a761ea79e13c08ced57ed48f6e4ea
--- FAIL: TestCmdGoNoHTTPServer (0.11s)
http_test.go:87: cmd/go unexpectedly links in HTTP server code; found symbol "net/http.http2Server" in cmd/go
http_test.go:87: cmd/go unexpectedly links in HTTP server code; found symbol "net/http.(*Server).Serve" in cmd/go
http_test.go:87: cmd/go unexpectedly links in HTTP server code; found symbol "net/http.(*ServeMux).ServeHTTP" in cmd/go
http_test.go:87: cmd/go unexpectedly links in HTTP server code; found symbol "net/http.DefaultServeMux" in cmd/go
FAIL
FAIL net/http 9.664s
View go.json
"test case": {
"prefix": "test",
"body": [
"func Test_$1(t *testing.T) {",
" testCases := []struct {",
" input string",
" output string",
" }{",
" {\"\",\"\"},",
" }",
View CGO.md

Problems & Solutions for Interaction Between C and Go

At Vimeo, on the transcoding team, we work a lot with Go, and a lot with C, for various tasks such as media ingest. This means we use CGO quite extensively, and consequently, have run into bits that are perhaps not very well documented, if at all. Below is my effort to document some of the problems we've run into, and how we fixed or worked around them.

Many of these are obviously wrong in retrospect, but hindsight is 20/20, and these problems do exist in many codebases currently.

Some are definitely ugly, and I much welcome better solutions! Tweet me at @daemon404 if you have any, or have your own CGO story/tips, please! I'd love to learn of them.

Table of Contents

View morning.playlist.itunes.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>Label</key>
<string>morning.playlist.itunes</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/open</string>
<string>-a</string>