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 () { /* | |
| Copyright The Closure Library Authors. | |
| SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| 'use strict'; | |
| var q, | |
| aa = 'function' == typeof Object.defineProperties ? Object.defineProperty : function (a, b, c) { | |
| if (a == Array.prototype || a == Object.prototype) return a; | |
| a[b] = c.value; |
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
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 | |
| Set-ExecutionPolicy Bypass -scope Process -Force | |
| Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force | |
| irm get.scoop.sh | iex | |
| #http://helloworldproject.blogspot.com/2021/01/setting-up-rust-on-windows-10-with.html | |
| scoop install msys2 | |
| ucrt64 -c "yes|pacman -Syuu" | |
| ucrt64 -c "yes|pacman -Syuu" | |
| ucrt64 -c "pacman -S pactoys openssh curl --noconfirm git vim" | |
| ucrt64 -c (@" |
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
| u@LAPTOP-31E3HV7R MINGW64 /c/u/ok/groses-projekt-mdt | |
| $ python -m venv test | |
| Looking in links: c:\Users\u\AppData\Local\Temp\tmp0yr8vk15 | |
| Processing c:\users\u\appdata\local\temp\tmp0yr8vk15\setuptools-58.1.0-py3-none-any.whl | |
| Processing c:\users\u\appdata\local\temp\tmp0yr8vk15\pip-22.0.4-py3-none-any.whl | |
| Installing collected packages: setuptools, pip | |
| Successfully installed pip-22.0.4 setuptools-58.1.0 | |
| u@LAPTOP-31E3HV7R MINGW64 /c/u/ok/groses-projekt-mdt | |
| $ source test/bin/activate |
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 traceMethodCalls(obj) { | |
| const handler = { | |
| get(target, propKey, receiver) { | |
| console.log('GET', propKey); | |
| const targetValue = target[propKey]; // Reflect.get(target, propKey, receiver); | |
| if (typeof targetValue === 'function') { | |
| return function(...args) { | |
| console.log('CALL', propKey, args); | |
| return targetValue.apply(target, args); // (A) | |
| } |
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
| import colors from "https://cdn.skypack.dev/ansi-colors@v4.1.1"; | |
| import * as readline from "./readline.js"; | |
| ; | |
| var global$1 = typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}; | |
| var lookup = []; | |
| var revLookup = []; | |
| var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array; | |
| var inited = false; | |
| function init() { | |
| inited = 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 propertyA = "A"; | |
| export const propertyB = "B"; | |
| //export something lodash_mapvalues; | |
| export default function( x ){ // <---- declared as a default function | |
| return x * x; | |
| } |
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
| // create a graph class | |
| class Graph { | |
| // defining vertex array and | |
| // adjacent list | |
| constructor() | |
| { | |
| this.AdjList = new Map(); | |
| } |
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
| //sersly | |
| ((a)=>{let xPathResult = document.evaluate(a, document, null, XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null ); | |
| const nodes = []; | |
| let node = xPathResult.iterateNext(); | |
| while (node) { | |
| nodes.push(node); | |
| node = xPathResult.iterateNext(); | |
| }; | |
| return nodes})('//input') |
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
| (* ::Package:: *) | |
| (*Import like Import["https://gist.githubusercontent.com/Kreijstal/\ | |
| 2a34158a1cf159b4ddc5ab3460f6efd0/raw/\ | |
| 6bfc3328d9538844fabbbce9691fb3c63824ed9f/promises.m"]*) | |
| Promise::usage="Promise[Function[{accept,reject},CustomLogic[accept[\"Success!\"],reject[\"Oh no! Error!\"]]]]" | |
| Promise := | |
| Module[{local, success, failure, listen, counter = 0, Promise}, | |
| success[x_] := (local["s"] = x;(*Print[{"I've been executed",x, | |
| local}];*)Through[local["t"][local["s"]]]; local["t"] = {}; | |
| local["resolved"] = 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
| console.log("hello world") |