Skip to content

Instantly share code, notes, and snippets.

View adamAfro's full-sized avatar
🎭

Adam adamAfro

🎭
View GitHub Profile
@adamAfro
adamAfro / Github auth.mjs
Created April 23, 2021 15:07
Github app authorization adapted from Sergey Dubovyk article
/* Pushes issue to github repository
*
* Original: https://medium.com/@knidarkness/creating-a-github-app-with-node-js-3bda731d45b9
* Reference: https://github.com/octokit/request.js/#authentication
* Reporistories: https://github.com/octokit/app.js/
* Reporistories: https://github.com/octokit/auth-app.js/
*
* After installing deps and having .env file; this file may be run with: $ node auth.mjs
*/
@adamAfro
adamAfro / particle.css
Created March 30, 2021 11:47
Prosta animacja atomu wokół jakiegoś tekstu
.particle {
display: inline-block;
position: relative; padding: 2em 5em 2em 1em;
overflow: hidden;
} .particle::after { content: ""; /* red ball */
display: block; border-radius: 100%; width: 0; height: 0; padding: 2em;
position: absolute; top: calc(50% - 2em); right: 0; z-index: 2;
@adamAfro
adamAfro / filecaller.js
Last active March 26, 2021 09:51
Pobiera plik z danej ścieżki albo z pamięci wewnętrznej „local storage”
/**
* https://github.com/adamAfro
* test
*/
export default class FileCaller {
/**
* gets file from web or indexed db
*/
static getAsString(path, version = 1) {