Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<script>
module = {};
</script>
<script src="https://cdn.jsdelivr.net/npm/webmidi"></script>
<script src="node_modules/beats/index.js"></script>
<script>
window.onload = function() {
navigator.getUserMedia({
<!doctype html>
<script src="https://cdn.jsdelivr.net/npm/webmidi"></script>
<script>
window.onload = function() {
/*
"use strict";
var paths = document.getElementsByTagName('path');
var visualizer = document.getElementById('visualizer');
var h = document.getElementsByTagName('h1')[0];
var path;
package main
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
steps:
- name: gcr.io/cloud-builders/gcloud
args:
- beta
- functions
- deploy
- --trigger-http
- --source=https://source.developers.google.com/projects/$PROJECT_ID/repos/$REPO_NAME/revisions/$COMMIT_SHA/paths/
- --entry-point=hello
- hello # Function name
@broady
broady / -
Created November 20, 2017 20:38
package main
import (
"bytes"
"io/ioutil"
"log"
"os"
"path/filepath"
@broady
broady / code.go
Last active November 20, 2017 06:25
package main
import (
"bytes"
"io/ioutil"
"log"
"os"
"path/filepath"
"time"
)
// Copyright 2017 Google Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
//+build ignore //; omit
package main
import (
"fmt"
// Copyright 2017 Google Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
//+build ignore //# omit
package main
import (
"fmt"
// Copyright 2017 Google Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
//+build ignore //# omit
package main
import (
"fmt"
// Copyright 2017 Google Inc. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
// [START errorreporting_quickstart]
// Sample errorreporting_quickstart contains is a quickstart
// example for the Google Cloud Error Reporting API.
package main