Skip to content

Instantly share code, notes, and snippets.

Avatar

Joseph Misiti josephmisiti

View GitHub Profile
View gist:3f39351d99e3703a691112436b18787e
{'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': 'joseph.misiti@gmail.com', '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
View gist:e5fd41d3f53daa353166b7312708a612
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),
View gist:7047c0c3a4e5599895fc2540d8b2914d
@josephmisiti
josephmisiti / AnkiMultipleChoiceTemplate.html
Created July 12, 2019 16:07 — forked from hgiesel/AnkiMultipleChoiceBackTemplate.html
A Multiple Choice Template for Anki Cards
View AnkiMultipleChoiceTemplate.html
<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
View imagemagick.bash
#!/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.
View keybase.md

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:

View matching.markdown

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
View StateBoundaries.sql
-- 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;
View gist:4645c1e89b6cbc64894a7e56f2534128
// @flow
import * as React from 'react';
import PercentageInput from '../../common/inputs/PercentageInput';
import { formatNumber } from '../../../utils/converters';
type propTypes = {
object: Object,
onChange: Function,
@josephmisiti
josephmisiti / spacy_intro.ipynb
Created February 21, 2018 18:28 — forked from aparrish/spacy_intro.ipynb
NLP Concepts with spaCy. Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
View spacy_intro.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.