Skip to content

Instantly share code, notes, and snippets.

Avatar

Adam Grant adamjgrant

  • Software Engineer
View GitHub Profile
@adamjgrant
adamjgrant / biden_harris.json
Last active Dec 4, 2020
Twitter Permutations
View biden_harris.json
{
"main": [
{
"branch": "dates"
},
{
"branch": "firstfemale"
},
{
"branch": "morebiden"
@adamjgrant
adamjgrant / example.permy
Last active Dec 1, 2020
permy.link shorthand
View example.permy
Hello to you
Hi there
'
How are you
How's it going
?
'
Do you like
->activities
?
View debounce_v2.js
class Whatever {
constructor() {
this.debounceQueue = {};
}
debounce(fn, id, delay, args) {
delay = delay || 1000;
args = args || [];
if (typeof debounceQueue[id] !== "object") {
debounceQueue[id] = {};
View example.json
{
"main": ["a", "b", "c", ["d"]]
}
View Sources.md

Medical Accidents

Data manipulation by focusing on outliers that poorly represent the whole. 5.3k of 3.1B vaxs filed for VICP petition, 3.6k compensated. 80% of which was settled, not confirmed. 233k injuries from Q tips over the same period. https://www.cms.gov/Medicare/Medicare-Fee-for-Service-Payment/HospitalAcqCond/Hospital-Acquired_Conditions Hospital acquired conditions (no stats)

View debouncer
let debounce, debounceQueue;
debounceQueue = {};
debounce = function(fn, id, delay, args, that) {
delay = delay || 1000;
that = that || this;
args = args || new Array();
if (typeof debounceQueue[id] !== "object") {
debounceQueue[id] = new Object();
View sarcasm.js
var str = "%filltext:name=field 1%";
str.split("").map((char, index) => {
return index%2 == 0 ? char.toUpperCase() : char.toLowerCase();
}).join("");
View Mozart v2.md

Mozart 2

Mozart is new kind of tool for JavaScript Developers. It's an organizer, not a framework.

Mozart is not so much a library as it is a technique, but mozart.js makes it easy to employ it. This means it works well with other libraries of your chosing, like jQuery.

JavaScript gets messy fast.

View gist:086545e33aa6a9327ec1f72c9b019f31
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
$script = <<SCRIPT
sudo su
View ffmpeg.txt
/bin/nice -n 2 /mnt/data/tools/ffmpeg-linux/ffmpeg -progress /mnt/local/2638__p022/ffmpeg-progress.log -thread_queue_size 512 -loop 1 -framerate 30 -i "/mnt/data/static_assets/bg.png" \
-thread_queue_size 512 -framerate 30 -start_number 0 -i "/mnt/data/queue/2638/rendering/p004/0-60/movie_%05d.png" \
-thread_queue_size 512 -framerate 30 -start_number 100 -i "/mnt/data/queue/2638/rendering/p001/100-130/movie_%05d.png" \
-thread_queue_size 512 -framerate 30 -start_number 0 -i "/mnt/data/queue/2638/rendering/p002/0-60/movie_%05d.png" \
-thread_queue_size 512 -framerate 30 -start_number 92 -i "/mnt/data/queue/2638/rendering/p002/92-151/movie_%05d.png" \
-thread_queue_size 512 -framerate 30 -start_number 315 -i "/mnt/data/queue/2638/rendering/p003/315-329/movie_%05d.png" \
-thread_queue_size 512 -framerate 30 -start_number 0 -i "/mnt/data/queue/2638/rendering/p004/0-60/movie_%05d.png" \
-filter_complex "[0:v] setpts=PTS-STARTPTS [base_seg]; \
[1:v] setpts=PTS-STARTPTS-30 [inp_0]; \
[2:v] setpts=PTS-STARTPTS-10 [in
You can’t perform that action at this time.