Skip to content

Instantly share code, notes, and snippets.

View josephmisiti's full-sized avatar

Joseph Misiti josephmisiti

View GitHub Profile
@josephmisiti
josephmisiti / gist:7572696
Created November 20, 2013 22:56
libsvm parameters
`svm-train' Usage
=================
Usage: svm-train [options] training_set_file [model_file]
options:
-s svm_type : set type of SVM (default 0)
0 -- C-SVC
1 -- nu-SVC
2 -- one-class SVM
3 -- epsilon-SVR
@josephmisiti
josephmisiti / postgres-cheatsheet.md
Created June 23, 2017 09:56 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

If run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).

Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@josephmisiti
josephmisiti / list.markdown
Last active June 21, 2019 05:34
Joseph Christmas Book List
@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;
@josephmisiti
josephmisiti / README.md
Created July 13, 2016 17:39 — forked from joshdover/README.md
Idiomatic React Testing Patterns

Idiomatic React Testing Patterns

Testing React components seems simple at first. Then you need to test something that isn't a pure interaction and things seem to break down. These 4 patterns should help you use a pattern that is repeatable and readable for the type of test you need.

Setup

I recommend doing all setup in the most functional way possible. If you can avoid it, don't set variables in a beforeEach. This will help ensure tests are isolated and make things a bit easier to reason about. I use a pattern