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
#!/usr/bin/env node | |
/* All NPM dependencies: | |
* "highlightjs": "^9.16.2", | |
* "jsdom": "^18.1.1", | |
* "jstransformer-markdown-it": "^2.1.0", | |
* "katex": "^0.15.1", | |
* "markdown-it-anchor": "^8.4.1", | |
* "markdown-it-header-sections": "^1.0.0", | |
* "markdown-it-highlightjs": "^3.5.0", |
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
# Por贸wnanie Algorymt贸w Sortuj膮cych | |
Tekst zawiera wykres z艂o偶ono艣ci algorytm贸w sortuj膮cych | |
## Renderowanie | |
呕eby przetworzy膰 ten dokument w R trzeba dokumentu z danymi `comprasion.csv` i paczki `knitr`: | |
```r | |
library(knitr) |
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 default class Circle { | |
// puts points around a cricle | |
static circulate(amount = 1, rotation = 0, angle = 2*Math.PI) { | |
const fraction = angle / amount / 2; | |
let coords = []; | |
for (let i = 0; i < amount; i++) { |
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 = []; |
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
#!/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
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
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
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
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) { |