Skip to content

Instantly share code, notes, and snippets.

Joseph Misiti josephmisiti

Block or report user

Report or block josephmisiti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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 — 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 Nov 8, 2018 — 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 Feb 21, 2018 — 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.
@josephmisiti
josephmisiti / spacy_intro.ipynb
Created Feb 21, 2018 — 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.
View gist:357f458a2337c5849fa18160e018d185
Let’s push the argument further to make it more interesting. We create a cohort that is composed exclusively of incompetent managers. We will define an incompetent manager as someone who has a negative expected return, the equivalent of the odds being stacked against him. We instruct the Monte Carlo generator now to draw from an urn. The urn has 100 balls, 45 black and 55 red. By drawing with replacement, the ratio of red to black balls will remain the same. If we draw a black ball, the manager will earn $10,000. If we draw a red ball, he will lose $10,000. The manager is thus expected to earn $10,000 with 45% probability, and lose $10,000 with 55%. On average, the manager will lose $1,000 each round—but only on average. At the end of the first year, we still expect to have 4,500 managers turning a profit (45% of them), the second, 45% of that number, 2,025. The third, 911; the fourth, 410; the fifth, 184. Let us give the surviving managers names and dress them in business suits. True, they represent less tha
View gist:4a57705031d88565b2dc257d470bdc66

Setting up tmpreaper

  1. install it
apt-get install tmpreaper
  1. added cron logging
You can’t perform that action at this time.