Just paste it to a project that supports kotlin language and write a package declaration on the top. Done.
Requires kscript to run as a script:
sdk install kscript
const sinon = require("sinon"); | |
const auth = { session: () => "real" }; | |
sinon.stub(auth, "session").callsFake(() => { | |
return "fake"; | |
}); | |
console.log(auth.session());// fake as expected | |
const holdSession = auth.session;//hapens in app.js app.use(auth.session); | |
sinon.restore(); | |
console.log(auth.session()); // real as expected | |
console.log(holdSession()); // fake ... UNEXPECTED! |
function transposeChord(inputChord, halfStepsToTranspose) { | |
const splittedChord = inputChord.split("/"); | |
if (splittedChord.length > 2) throw new Error("Format error, too many slashes."); | |
const [transposedChordBase, modifier] = transposeChordBase(splittedChord, halfStepsToTranspose); | |
const maybeTransposedBass = transposeBass(splittedChord, halfStepsToTranspose); | |
const transposedChordHasAccident = | |
transposedChordBase.length > 1 && | |
["#", "b"].includes(transposedChordBase.charAt(1)); |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Parent Window</title> | |
<!-- Use the angular js we use at this moment --> | |
<script | |
src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.8.0/angular.js" | |
integrity="sha512-CiKQCmN86Y1I8Ewkt2gGnSNmsiVrS9Ez5MoudCBhTiBJScg+GjA9OlKdaeI0IuxdCl43Fs5x5zpeew2hfOatOA==" | |
crossorigin="anonymous" |
Math.sin(t) |
X:1 | |
T:CoronaMidi (t=d) | |
M:5/8 | |
K:G | |
addaaaggdd | dadaccddcc | caggdaacaa | accaaccaac | dddcgadcdc | ddgdagadcd | | |
gddcdcdaaa | cgaacdddaa | aadcdgdgdg | gcdgdcacdc | ggcdgcadgc | ddagdgcacd | | |
cacgcagdad | aaddaadaac | daaddacdgd | cgddgacagg | acacgagdaa | cdcgdcdadc | | |
ddcdgcaggc | dgcddacggd | ddcgdccgdg | ddgcagccga | dcadcagcac | adcdaggddd | | |
cgdccgggdg | dgaccgaaag | gdaagadgga | gagccddgdc | ccdggdddca | acgagaaaac | | |
acacgdccaa | cdcagdddgc | cdgddddaca | ggddcgcgac | gdgcdcgdac | gdggcdddgg | |
version: '3.1' | |
services: | |
# phpmyadmin: | |
# image: phpmyadmin/phpmyadmin | |
# ports: | |
# - 8080:80 | |
# environment: | |
# - "PMA_HOST=mysql" | |
mysql: | |
image: mysql:5.6 |
# Open terminal where you want to create the jitsi sources folders and run: | |
# Download sources | |
git clone https://github.com/jitsi/jitsi-meet.git | |
# enter project folder | |
cd jitsi-meet | |
# make sure you have node version 12 or higher. Check it with | |
node -v | |
# If it is not 12.x.x or higher you should stop, and install the right version of node. | |
# Now install the npm packages |
Option Explicit | |
Dim objshell,path,DigitalID, Result | |
Set objshell = CreateObject("WScript.Shell") | |
'Set registry key path | |
Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" | |
'Registry key value | |
DigitalID = objshell.RegRead(Path & "DigitalProductId") | |
Dim ProductName,ProductID,ProductKey,ProductData | |
'Get ProductName, ProductID, ProductKey |
This batch file is useful to visualize passwords stored in your PC.