Skip to content

Instantly share code, notes, and snippets.

View jeffgodwyll's full-sized avatar

Jeffrey Godwyll jeffgodwyll

View GitHub Profile
[{"plans": [{"specs": [{"disk": 3072, "dollars_per_hr": 0.01, "description": "1 vCPU (shared physical core) and 0.6 GB RAM", "dollars_per_mo": 6, "transfer": "unlimited?", "ram": 614, "id": "1000", "cpu": 1}], "name": "f1-micro", "id": "f1-micro"}, {"specs": [{"disk": 3072, "dollars_per_hr": 0.035, "description": "1 vCPU (shared physical core) and 1.7 GB RAM", "dollars_per_mo": 23, "transfer": "unlimited?", "ram": 1740, "id": "2000", "cpu": 1}], "name": "g1-small", "id": "g1-small"}, {"specs": [{"disk": 65536, "dollars_per_hr": 0.792, "description": "16 vCPUs, 14.4 GB RAM", "dollars_per_mo": 532, "transfer": "unlimited?", "ram": 14746, "id": "4016", "cpu": 16}], "name": "n1-highcpu-16", "id": "n1-highcpu-16"}, {"specs": [{"disk": 65536, "dollars_per_hr": 0.099, "description": "2 vCPUs, 1.8 GB RAM", "dollars_per_mo": 66, "transfer": "unlimited?", "ram": 1843, "id": "4002", "cpu": 2}], "name": "n1-highcpu-2", "id": "n1-highcpu-2"}, {"specs": [{"disk": 65536, "dollars_per_hr": 1.584, "description": "32 vCPUs, 28
@jeffgodwyll
jeffgodwyll / pre-commit.md
Last active April 16, 2017 18:33
Check for style guide issues before commit

Install flake8

$ pip install flake8`

Edit pre-commit file

$ vim .git/hooks/pre-commit`

to show and enforce styleguide conventions before commit, add the following:

var SPREADSHEET_ID = 'SHEET_ID_HERE';
var SHEET_NAME = 'SHEET_NAME_HERE';
function doGet() {
var range = SpreadsheetApp.openById(SPREADSHEET_ID).getSheetByName(SHEET_NAME).getDataRange();
var json = JSON.stringify(range.getValues());
return ContentService.createTextOutput(json).setMimeType(ContentService.MimeType.JAVASCRIPT);
}
@jeffgodwyll
jeffgodwyll / index.html
Created September 29, 2017 18:58
GDG Meetup API Sample Usage
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Meetup endpoints</title>
<ul></ul>
</head>
<body>