Skip to content

Instantly share code, notes, and snippets.

@znorris
znorris / .profile
Created December 9, 2017 00:03 — forked from zombiezen/.profile
zsh on Google Cloud Shell
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@znorris
znorris / google.py
Created September 28, 2016 21:43 — forked from alexcasalboni/google.py
Google Prediction API - Train a classification model and generate a new Prediction
import httplib2, argparse, os, sys, json
from oauth2client import tools, file, client
from oauth2client.service_account import ServiceAccountCredentials
from googleapiclient import discovery
from googleapiclient.errors import HttpError
#Project and model configuration
project_id = '132567073760'
model_id = 'HAR-model'
@znorris
znorris / Gemfile
Last active April 14, 2016 22:24 — forked from mcrumm/Gemfile
Sloth, gentle load testing
source 'https://rubygems.org'
gem 'httparty'