Skip to content

Instantly share code, notes, and snippets.

View Bnaya's full-sized avatar
🐪

Bnaya Peretz Bnaya

🐪
View GitHub Profile
@Bnaya
Bnaya / main.js
Created November 29, 2024 08:03
Inject download links to cloud.panopto.eu list page
// Be in a content list page
// Paste and run this code in the dev tools console
await main();
async function main() {
const linksToViewerPage = [
...document.querySelectorAll("#listViewContainer a.detail-title"),
];
let step = linksToViewerPage.map((aElement) => {
@Bnaya
Bnaya / .gitignore
Last active December 13, 2020 11:28
Lambda + api gateway + CF = serve zip
# package directories
node_modules
jspm_packages
# Serverless directories
.serverless

Re-export class + intermediate variable = "using private name" error

run yarn tsc4p1 = "using private name" error

run yarn tsc4p0 = "using private name" error

commonjs re-export of js + deceleration emit = crash!

run yarn tsc4p1 = Crash!!

run yarn tsc4p0 = "private name error is expected"

Examples for mobx-state-tree + TypeScript article

@Bnaya
Bnaya / README.md
Created July 20, 2020 08:36
Basic example of fetch api + expressjs/multer using files and text fields

Basic example of fetch api + expressjs/multer using files and text fields

{
"name": "guykedem",
"version": "1.0.0",
"main": "index.js",
"author": "Bnaya Peretz",
"license": "MIT",
"devDependencies": {
"collections-deep-equal": "^2.0.0",
"typescript": "^3.9.6"
}
import assert from "assert";
assert.strictEqual(4, 4);
import assert from "assert";
assert.strictEqual(4, 4);
@Bnaya
Bnaya / jsconfig.json
Last active May 6, 2020 19:06
webdriver why you hate me so much
{
"typeAcquisition": {},
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"checkJs": true
},
"include": ["wat.js"],
}