Skip to content

Instantly share code, notes, and snippets.

View generalzhou's full-sized avatar

Jack Zhou generalzhou

View GitHub Profile

PagerDuty + Arize AI Integration Benefits

  • Notify on-call responders based on ML model monitors from Arize.
  • Create high and low urgency incidents based on the severity of the event from the Arize AI event payload.
  • Catch and debug ML model issues faster with more comprehensive metadata.

How it Works

  • Arize is a ML Observability platform aimed to detect and troubleshoot ML problems. Use Arize to monitor your production models and send alerts to PagerDuty when your models deviate from a certain threshold. Alert events will trigger a new incident on the corresponding PagerDuty service, or group as alerts into an existing incident.
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
## Asteroids
# first create an array that represents the relative positions of the asteroids
# once we do this, we can ignore the actual distance from the space station as it's not relevant
# example:
# 0 | . | o | space station
# -----------------|-------|-----
# mass: 3 | 1 | 2
## Asteroids
# first create an array that represents the relative positions of the asteroids
# once we do this, we can ignore the actual distance from the space station as it's not relevant
# example:
# 0 | . | o | space station
# -----------------|-------|-----
# mass: 3 | 1 | 2
require 'httparty'
require 'awesome_print'
public_token = ""
class PlaidAdapter
CLIENT_ID = ''
CLIENT_SECRET = ''
attr_reader :public_token
@generalzhou
generalzhou / deleted_objects
Created July 29, 2014 17:44
Delete supplemental loan doc script for [#75903890]
[#<LoanDocument id: 180, name: "Supplement Form_Jaseboards", file: "Supplement_Form_Jaseboards.pdf", created_at: "2014-07-28 18:44:20", updated_at: "2014-07-28 18:44:20", loan_application_id: "635bbb27-2785-4832-b49c-61b74886e310">, #<LoanDocument id: 111, name: "Benthic Fishing__Supplement", file: "Benthic_Fishing__Supplement.pdf", created_at: "2014-07-09 14:58:00", updated_at: "2014-07-09 14:58:00", loan_application_id: "3fff82e2-5286-4147-8d9a-092551db4088">, #<LoanDocument id: 138, name: "Supplement Form_WhiteOakAuto", file: "Supplement_Form_WhiteOakAuto.pdf", created_at: "2014-07-21 20:01:44", updated_at: "2014-07-21 20:01:44", loan_application_id: "f6a95040-286e-494e-9eed-d79c32747698">, #<LoanDocument id: 113, name: "Giftcardrescue.com__Supplement", file: "Giftcardrescue.com__Supplement.pdf", created_at: "2014-07-09 16:43:04", updated_at: "2014-07-09 16:43:04", loan_application_id: "1395741a-1d9e-44cc-a61c-c1411deae420">, #<LoanDocument id: 142, name: "Supplement Form_Five Star Equity", file: "Suppleme

ActionController Basics

What is the action controller and how can we use it?

A controller is a Ruby class which inherits from ApplicationController and has methods just like any other class.

class ApplicationController < ActionController::Base
	def methods_every_controller_can_use
	end
@generalzhou
generalzhou / zoo.js
Last active December 17, 2015 16:09 — forked from dbc-challenges/zoo.js
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
//------------------------------------------------------------------------------------------------------------------
var Zoo = {
init: function(animals) {
this.animals = animals;
},
bipeds: function() {
var biped_array = [];
@generalzhou
generalzhou / index.html
Last active December 17, 2015 15:59 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>