This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* https://github.com/adamAfro | |
* test | |
*/ | |
export default class FileCaller { | |
/** | |
* gets file from web or indexed db | |
*/ | |
static getAsString(path, version = 1) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function initAPI(window, { apiKey, clientId }) { | |
let doc = window.document; | |
return new Promise((resolve, reject) => { | |
const URL = "https://apis.google.com/js/api.js"; | |
let apiTag = doc.querySelector(`script[src="${URL}"]`); | |
if (!apiTag) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const Meta = { | |
title: "SVGear", | |
purpose: "making gearset in SVG with correct speed ratio", | |
limitations: [ | |
"does not account for collisons: it just applies correct speed" | |
] | |
}; export default class Gear { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Database { | |
static get name() { return "maszynopis" } | |
/* Database structure is defined here */ | |
static structurize(indexedDB) { | |
let store = indexedDB.createObjectStore("documents", { keyPath: "path" }); | |
store.createIndex("path", "path", { unique: true }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Meta = { | |
author: "adamAfro", | |
title: "Express'Strategies", | |
purpose: "making strategies for different roles", | |
usage: "copy&paset and write how paths should or not" | |
+ " be handled for certain roles", | |
inspiration: "https://stackoverflow.com/a/32032705/13851998" | |
} | |
let strategies = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# tworzenie pliku epub z danych dokumentów | |
T="Notatki" # tytuł | |
# style.css - plik ze stylami | |
# cover.jpg - okładka | |
F="zapiski"/* # folder z dokumentami |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Npdst.: https://unix.stackexchange.com/a/203854 | |
# Umieszcza nowsze wersje plików i usuwa te których nie ma | |
d1="/home/adam/Dokumenty/abc/A" | |
d2="/home/adam/Dokumenty/abc/B" | |
# -avu - sys.attr.; verbose; leave the newest; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Section { | |
constructor({ depth = 0, owner = null } = {}) { | |
this.depth = depth, this.owner = owner; | |
this.nodes = [], this.sections = []; | |
} | |
} | |
let collection = []; |
OlderNewer