Skip to content

Instantly share code, notes, and snippets.

View josephmisiti's full-sized avatar

Joseph Misiti josephmisiti

View GitHub Profile
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function Zu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gu={exports:{}},nl={},Xu={exports:{}},I={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found
#root{max-width:1280px;margin:0 auto;padding:2rem}#scrubbing-container{position:relative}.label-item{display:flex;align-items:center;border:1px dotted #888;justify-content:space-between;margin-top:5px}.label-item.selected{background:rgb(178,255,178)}.label-item button{margin:3px}.export{border:1px solid rgb(0,0,52);background:rgb(114,114,233)}.export:hover{background:rgb(30,30,236);color:#fff}.blue-hover{color:#7272e9;fill:#7272e9}.blue-hover:hover{color:#1e1eec;fill:#1e1eec;cursor:pointer}.missing{box-shadow:0 0 10px 5px #ff5959}.validation-error-modal{width:100%;height:100%;position:absolute;z-index:999;top:0;left:0;display:flex;justify-content:center;align-items:center;background-color:#f0f0f0e6;border:2px solid rgba(100,100,100,.5);pointer-events:all;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxsaW5lIHgxPSIwIiB5MT0iMCIgeDI9IjEwMCIgeTI9IjEwMCIgc3Ryb2tlPSJyZ2JhKDEwMCwxMDAsMTAwLDAuNSkiIHN0cm9rZS13aWR0aD0iMiIvPgog
{'landmark_name': None, 'street': '857 ocean rd', 'zipcode': '11932', 'city': 'bridgehampton', 'state': 'ny', 'po_box': '', 'full_address': '857 Ocean Rd, Bridgehampton, NY 11932, USA', 'from_email': '[email protected]', 'time_to_fire_station_units': 1.41, 'time_to_fire_station': 4, 'distance_to_coast': 4545, 'distance_to_fire_station': 1.41, 'elevation': 6.028863906860352, 'fema_flood_zone': 'X', 'number_of_buildings': 0, 'year_built': '2000', 'roof_type': None, 'roof_cover': None, 'building_area': 1544, 'land_use': 'Single Family Residential', 'basement': 'Full Basement', 'neptune_quote_response': {'error': False, 'data': {'userID': None, 'brokerId': '9C0CD433-CC15-4053-8579-581F51B11D50', 'agentNo': 'FL0001', 'producerName': None, 'producerLicense': None, 'isDirectToConsumer': False, 'quoteNumber': 'NY0197APZQ3R9', 'status': 'approved', 'isBound': False, 'dateBound': '0001-01-01T00:00:00', 'isLocationBound': False, 'link': 'https://uat.neptuneflood.com/agent-hub/#/quote/NY0197APZQ3R9/auth/eyJhbGciOiJ
def get_quote(self, address, city, state, zipcode):
""" """
if not self.__token:
self.get_token_bearer()
assert len(state) == 2
resp = requests.request(
"POST",
'%s/Services/API/v1/Quote' % (self.__base_url),
@josephmisiti
josephmisiti / AnkiMultipleChoiceTemplate.html
Created July 12, 2019 16:07 — forked from hgiesel/AnkiMultipleChoiceBackTemplate.html
A Multiple Choice Template for Anki Cards
<script>
// MULTIPLE CHOICE TEMPLATE v1.2 {{{
// https://gist.github.com/hgiesel/2e8361afccca5713414a6a4ee66b7ece
const query = 'div#thecard'
const colors = ['orange', 'olive', 'maroon', 'aqua', 'fuchsia', 'navy', 'lime']
const fieldPadding = '4px'
const syntax = {
openDelim: '(^',
closeDelim: '^)',
@josephmisiti
josephmisiti / imagemagick.bash
Created May 22, 2019 14:14 — forked from bensie/imagemagick.bash
ImageMagick Static Binaries for AWS Lambda
#!/usr/bin/env bash
# Must be run on an Amazon Linux AMI that matches AWS Lambda's runtime which can be found at:
# https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html
#
# As of May 21, 2019, this is:
# Amazon Linux AMI 2018.03.0 (ami-0756fbca465a59a30)
#
# You need to prepend PATH with the folder containing these binaries in your Lambda function
# to ensure these newer binaries are used.

Keybase proof

I hereby claim:

  • I am josephmisiti on github.
  • I am josephmisiti (https://keybase.io/josephmisiti) on keybase.
  • I have a public key whose fingerprint is D92F 398A D21C 50C9 A9EE F0AB 0A54 BF1F 91D4 260A

To claim this, I am signing this object:

Client parsing:

  • dismiss dialogue after match
  • only auto-match on FEIN (link when match)
  • add ability (in code) to turn of auto-match FEIN
  • current -> parsed client
  • added dead columns

Broker Parsing:

  • add parsed value field for broker name
  • no ability creating brokers
@josephmisiti
josephmisiti / StateBoundaries.sql
Created November 8, 2018 00:19 — forked from jakebathman/StateBoundaries.sql
The approximate max/min latitude and longitude for all states and major territories
-- Create the table
CREATE TABLE IF NOT EXISTS `StateBoundaries` (
`State` varchar(10) DEFAULT NULL,
`Name` varchar(255) DEFAULT NULL,
`MinLat` varchar(50) DEFAULT NULL,
`MaxLat` varchar(50) DEFAULT NULL,
`MinLon` varchar(50) DEFAULT NULL,
`MaxLon` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;