This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/base64" | |
"flag" | |
"fmt" | |
"log" | |
"github.com/google/tink/go/aead" | |
"github.com/google/tink/go/core/registry" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"flag" | |
"log" | |
"github.com/docker/distribution/registry/client" | |
heroku "github.com/heroku/docker-registry-client/registry" | |
"github.com/motemen/go-loghttp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:core' as core; | |
class A { | |
core.String content; | |
core.String uri; | |
A(); | |
A.fromJson(core.Map _json){ | |
if (_json.containsKey("content")){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:speech/speech.dart' as speech; | |
import 'package:googleapis/speech/v1.dart'; | |
import 'package:googleapis_auth/auth_io.dart'; | |
final _credentials = new ServiceAccountCredentials.fromJson(r''' | |
{ | |
"type": "service_account", | |
"project_id": "", | |
"private_key_id": "", | |
"private_key": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"golang.org/x/net/context" | |
"golang.org/x/oauth2/google" | |
"google.golang.org/api/admin/directory/v1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from googleapiclient.discovery import build | |
from oauth2client.service_account import ServiceAccountCredentials | |
SERVICE_ACCOUNT_EMAIL = '[[ROBOT]]@[[PROJECT]].iam.gserviceaccount.com' | |
SERVICE_ACCOUNT_FILE_PATH = './credentials.json' | |
USER_EMAIL = '[email protected]' | |
def main(): | |
credentials = ServiceAccountCredentials.from_json_keyfile_name( | |
SERVICE_ACCOUNT_FILE_PATH, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://play.golang.org/p/jBSgaIlNK1R | |
package main | |
import ( | |
"machine" | |
"time" | |
) | |
func enumerate() { | |
var x, y uint8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Google; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.2" | |
services: | |
prometheus: | |
... | |
grafana: | |
depends_on: | |
- prometheus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"math/rand" | |
"sync" | |
"time" | |
"contrib.go.opencensus.io/exporter/stackdriver" |