Skip to content

Instantly share code, notes, and snippets.

View damiansk's full-sized avatar
🍜
Hmm... ?

Damian Stolarek damiansk

🍜
Hmm... ?
View GitHub Profile
javascript:(function() {
let groupByN = (n, data) => {
let result = [];
for (let i = 0; i < data.length; i += n) result.push(data.slice(i, i + n));
return result;
};
const groups = [...document.querySelectorAll("div.col-md")];
const result = groups.map(group => {
const header = group.querySelector('h4').textContent;
@damiansk
damiansk / easing.js
Created October 16, 2019 05:48 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity
@damiansk
damiansk / cloudSettings
Last active February 15, 2021 16:07
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-02-15T16:07:10.163Z","extensionVersion":"v3.4.3"}