Skip to content

Instantly share code, notes, and snippets.

View chadfurman's full-sized avatar

Chad Furman chadfurman

View GitHub Profile
https://media.giphy.com/media/FjfMN9MwuqvJe/giphy.gif - suspect is hatless, I repeat hatless
https://media.giphy.com/media/l0ExpaDR2IOTB2dAQ/giphy.gif - Dabbing mr. peanut
http://www.reactiongifs.com/r/trmp1.gif - Yeah Right Trump Faces
https://i.imgur.com/7XHSM7K.gif - Shitposting loudly
https://www.youtube.com/watch?v=DtRNg5uSKQ0 - fix it
http://i.imgur.com/GieYD.gif - well, hello there game changer
http://i.imgur.com/VF1p5XN.gif
https://i.imgur.com/eSVPDfw.gif - Parakeet explosion
https://media3.giphy.com/media/BWjTRoBsEKnII/giphy-downsized.gif - Top Men
https://i.imgur.com/MgtuAZQ.gif - Cold blooded
import csv
def csv_reader(filename: str, operation: callable) -> None:
with open(filename,'rt') as f:
data = csv.reader(f)
for row in data:
counter += 1
if counter < 1:
continue # skip first row, it's a header
operation(row)
const fs = require('fs');
const path = require('path');
const csv = require('fast-csv');
fs.createReadStream(path.resolve(__dirname, 'COVID-19/csse_covid_19_data/csse_covid_19_daily_reports/', '03-28-2020.csv'))
.pipe(csv.parse({ headers: true }))
.on('error', error => console.error(error))
.on('data', row => {
const data = {}
data.province = row['Province_State'] || row['Province/State']
@chadfurman
chadfurman / index.js
Last active January 20, 2020 21:39
A server for pingme's online status
import express from 'express'
const app = express()
let myTimer = null
let online = false
const timeout = 30 * 60 * 1000 // number of milliseconds in 30 minutes
app.post('/pingme', (req,res) => {
online = true
clearTimeout(myTimer)
@chadfurman
chadfurman / freeudemy
Last active January 6, 2022 15:39
free udemy courses
https://www.udemy.com/course/2019-build-an-simple-online-examination-system-with-php7/
https://www.udemy.com/course/3d-printing-ultimate-workshop-and-full-step-by-step-guide/
https://www.udemy.com/course/android-application-engineer-practice-exam-for-2018/?couponCode=CF028BE8E99EF5E7EF05
https://www.udemy.com/course/automate/?couponCode=NOV2019FREE
https://www.udemy.com/course/aws-certified-security-specialty-2019-exams/?couponCode=438CDFC92EBF1CD5A88A
https://www.udemy.com/course/aws-certified-solutions-architect-professional-2019-exams/?couponCode=8FBFF6E5040CC97542B7
https://www.udemy.com/course/backtowar-photoshop-retouching/
https://www.udemy.com/course/bootstrap-4-responsive-design-mobile-first-desde-cero/
https://www.udemy.com/course/build-a-streaming-twitter-filter-with-python-and-redis/
@chadfurman
chadfurman / download-files-in-html-file-links.py
Created November 3, 2019 21:33
A short script to download files from a webpage you saved in your browser. Currently set to download PDFs.
@chadfurman
chadfurman / session3.md
Last active October 10, 2019 13:29
Session #3 assignment

geometry: margin=1in fontsize: 12pt linkcolor: cyan urlcolor: cyan ...

Session #3: Assessments, Assertions and Actions

_Leadership Study Group: 2019-10-cf

Keybase proof

I hereby claim:

  • I am chadfurman on github.
  • I am chadfurman (https://keybase.io/chadfurman) on keybase.
  • I have a public key whose fingerprint is C37F A006 1A59 44AA BEA2 BC87 90F4 CD83 5A7C 2FA1

To claim this, I am signing this object:

@chadfurman
chadfurman / ible.js
Created November 11, 2018 08:57
horr
function filterMails(mails, stat) {
let matchingPredicate = _.filter(mails, (mail) => {
let test = mail.predicate.split(' ')
stat.cases = _.map(test, (filter) => {
let operation = filter.split(/([=<>]{1,2})/g)
if (operation.length && operation.length === 3) {
let mainNum
let comparator
if (operation[0] === 'lastEntry') {
// TODO: parse dates