Skip to content

Instantly share code, notes, and snippets.

View michaellzc's full-sized avatar
🙃
...

Michael Lin michaellzc

🙃
...
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ExiaSR on github.
  • I am exiasr (https://keybase.io/exiasr) on keybase.
  • I have a public key whose fingerprint is 3A27 02EE 9185 C165 394B 37F6 23DF A250 4A39 7755

To claim this, I am signing this object:

{
"fyre": {
"creds": {
"username": "<FYRE_USERNAME>",
"api_key": "<FYRE_API_KEY>",
"public_key": "<SSH_PUBLIC_KEY_PEM>"
}
},
"cluster_prefix": "<CLUSTER_NAME>",
"clusterconfig": {
Name Team Position Height(inches) Weight(lbs) Age
Adam Donachie BAL Catcher 74 180 22.99
Paul Bako BAL Catcher 74 215 34.69
Ramon Hernandez BAL Catcher 72 210 30.78
Kevin Millar BAL First Baseman 72 210 35.43
Chris Gomez BAL First Baseman 73 188 35.71
Brian Roberts BAL Second Baseman 69 176 29.39
Miguel Tejada BAL Shortstop 69 209 30.77
Melvin Mora BAL Third Baseman 71 200 35.07
Aubrey Huff BAL Third Baseman 76 231 30.19
We can't make this file beautiful and searchable because it's too large.
Date,From_Community,Latitude,Longitude,Year,YearMonth,Month,MonthNameShort,MonthNameLong,Weekend,Day_of_Week,Number_of_Rides,Percent_Customers,Percent_Subscribers,Percent_Dependents,Percent_Males,Percent_Females,Average_Age
2014-01-01,ALBANY PARK,41.96111,-87.72897,2014,2014 - 01,01,Jan,January,No,Wednesday,0,,,,,,
2014-01-01,ARMOUR SQUARE,41.84924,-87.63171,2014,2014 - 01,01,Jan,January,No,Wednesday,1,0,100,0,100,0,32
2014-01-01,AUSTIN,41.89489,-87.7747,2014,2014 - 01,01,Jan,January,No,Wednesday,0,,,,,,
2014-01-01,AVALON PARK,41.74656,-87.58601,2014,2014 - 01,01,Jan,January,No,Wednesday,0,,,,,,
2014-01-01,AVONDALE,41.9394,-87.71156,2014,2014 - 01,01,Jan,January,No,Wednesday,0,,,,,,
2014-01-01,BRIDGEPORT,41.8472,-87.64679,2014,2014 - 01,01,Jan,January,No,Wednesday,0,,,,,,
2014-01-01,CHATHAM,41.75079,-87.62442,2014,2014 - 01,01,Jan,January,No,Wednesday,0,,,,,,
2014-01-01,DOUGLAS,41.84544,-87.62218,2014,2014 - 01,01,Jan,January,No,Wednesday,0,,,,,,
2014-01-01,EAST GARFIELD PARK,41.8846,-87.7063,2014,2014 - 01,0
from imaplib import IMAP4_SSL
import email
import smtplib
import time
email_addr = 'your@gmail.com' # your gmail username, address
app_password = 'topsecret' # your google app password
def main():
mail = IMAP4_SSL('imap.gmail.com')
@michaellzc
michaellzc / swagger_api.yaml
Last active January 26, 2019 23:23
CMPUT 404 Project REST API - OpenAPI Spec
openapi: 3.0.0
servers:
- url: /
info:
title: Social Distribution Project REST API
description: A Social Distribution Project
version: 0.2.8
tags:
- name: post
description: Blog post operations
// 'use strict';
function foo() { console.log(this.a); }
foo.a = 1;
var context = {
a: 1
}
foo(); // undefined
function foo(b) {
console.log(this.a, b);
return this.a + b;
}
var context = {
a: 2,
};
var fooFake = foo;
"""
Run cf-terraforming record > cf_records.tf to generate cf_recores.tf file.
"""
import hcl
import subprocess
with open('cf_records.tf', 'r') as f:
obj = hcl.load(f)
records : dict = obj['resource']['cloudflare_record']
@michaellzc
michaellzc / machine.js
Created April 26, 2020 18:41
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions