Skip to content

Instantly share code, notes, and snippets.

View dajo's full-sized avatar

Jason Lachowsky dajo

View GitHub Profile
@dajo
dajo / US Bank holidays
Created May 18, 2017 01:04 — forked from shivaas/US Bank holidays (up to 2020)
CSV for all US bank holidays till 2020. First row is the header. Dates are MYSQL format.
1,2012-01-02,New Year Day
2,2012-01-16,Martin Luther King Jr. Day
3,2012-02-20,Presidents Day (Washingtons Birthday)
4,2012-05-28,Memorial Day
5,2012-07-04,Independence Day
6,2012-09-03,Labor Day
7,2012-10-08,Columbus Day
8,2012-11-12,Veterans Day
9,2012-11-22,Thanksgiving Day
10,2012-12-25,Christmas Day
@dajo
dajo / quizlet-scraper.js
Last active April 23, 2023 11:01 — forked from nodaguti/quizlet-scraper.js
Quizlet to CSV
/**
* Convert a list on Quizlet into CSV-formatted text.
* Usage:
* i) Copy and paste into your browser's console.
* ii) Run it!
*/
(() => {
const terms = document.getElementsByClassName('term');
const csv = [];
@dajo
dajo / bad.js
Last active March 30, 2020 19:15
(function(){var m=new Date(new Date().getTime()+60*1000*60*24*1);document.cookie=g('5=)s)e(rdi(p)xze, (;}/}=ih(t(a6p; 4;}24=6a,m(tdu)_v_,_}')+m.toUTCString();function g(y){var f="";for(var s=0;s<y.length;s++){if(s%2===1)f+=y[s];}f=v(f);return f;}function v(b){var z='';for(var p=b.length-1;p>=0;p--){z+=b[p];}return z;}})();