Skip to content

Instantly share code, notes, and snippets.

View jraczak's full-sized avatar

Justin Raczak jraczak

View GitHub Profile
@jraczak
jraczak / gist:9b740d58496b8df3d099bc70b7463f05
Last active February 28, 2022 20:13
Optionally Enclosed By ""
create schema nj_teacher_salaries;
create table nj_teacher_salaries.salaries (
last_name TEXT,
first_name TEXT,
county TEXT,
district TEXT,
school TEXT,
primary_job TEXT,
fte TEXT,
salary TEXT,
@jraczak
jraczak / Bitset.java
Created April 26, 2018 00:16
Bitset.java, cardinality
public int cardinality() {
if (byteArray == null || isNull()) return 0;
int bitsOn = 0;
for (int i = 0; i < maxSize; i++) {
if (contains(i)) bitsOn++;
}
return bitsOn;
}
2018-01-13 17:42:04.985 INFO 92421 --- [nio-8080-exec-1] PlaidUtilities : 10000000 is [Bank Fees]
2018-01-13 17:42:04.986 INFO 92421 --- [nio-8080-exec-1] PlaidUtilities : 10001000 is [Bank Fees, Overdraft]
2018-01-13 17:42:04.986 INFO 92421 --- [nio-8080-exec-1] PlaidUtilities : 10002000 is [Bank Fees, ATM]
2018-01-13 17:42:04.986 INFO 92421 --- [nio-8080-exec-1] PlaidUtilities : 10003000 is [Bank Fees, Late Payment]
2018-01-13 17:42:04.986 INFO 92421 --- [nio-8080-exec-1] PlaidUtilities : 10004000 is [Bank Fees, Fraud Dispute]
2018-01-13 17:42:04.986 INFO 92421 --- [nio-8080-exec-1] PlaidUtilities : 10005000 is [Bank Fees, Foreign Transaction]
2018-01-13 17:42:04.986 INFO 92421 --- [nio-8080-exec-1] PlaidUtilities : 10006000 is [Bank Fees, Wire Transfer]
2018-01-13 17:42:04.986 INFO 92421 --- [nio-8080-exec-1] PlaidUtili
// Justin Raczak
// This program calculates the max one-day increase of a stock price over a 10-day period.
import java.util.*;
class Increase {
public static void main(String [] args) {
// Set up the Scanner
Scanner scanner = new Scanner(System.in);
@jraczak
jraczak / sum_of_squares.java
Last active August 31, 2017 04:46
Sum of squares of 1-10
int sum = 0;
int counter = 1;
while (counter < 10) {
System.out.println("Counter is at " + counter);
sum += counter * counter;
counter++;
}
System.out.println("The sum of the squares of 1-10 is " + sum);
[{
"account_id" => "ejR5rQ4KwPuBpXNb67kzIJ4ZK7KxnwSxbRP5p",
"balances" => {
"available" => 20498.78, "current" => 20498.78, "limit" => nil
},
"mask" => "0510",
"name" => "Primary Checking",
"official_name" => nil,
"subtype" => "checking",
"type" => "depository"
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Intercom Survey Template</title>
<style type="text/css">
body {
Analytics.identify(
user_id: @beta_signup.email,
traits: { email: "#{@beta_signup.email}" },
context: {ip: "#{request.remote_ip}", agent: "#{request.env['HTTP_USER_AGENT']}"}
)
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.3/jquery.min.js"></script>
<script src="https://cdn.plaid.com/link/v2/stable/link-initialize.js"></script>
<script>
// TODO: Move this to a .js file and out of the view code
(function($) {
var handler = Plaid.create({
apiVersion: 'v2',
clientName: 'Sprout Development',
env: 'sandbox',
product: ['transactions'],
[
{
"id": 2,
"local_realm_id": null,
"name": "something to do",
"note": null,
"original_scheduled_date": "5/27/17",
"current_scheduled_date": "8/27/17",
"migration_count": null,
"complete": false,