(G Major)
A
| A3A4 A3A1 A2A3 A2A0 | D3 E12 D3 xx | A2A3 A2A0 A1A2 A1D3 | A0 A#23 D0 xx |
A'
| A3A4 A3A1 A2A3 A2A0 | D3 E12 D3 xx | A1 D3D1 D3 D1G#3 | D0 A#23 D0 xx |
B
// PseudoCode for Manual DI | |
public class ModuleAbcConfiguration { | |
private static ModuleAbcApi moduleAbcApi; | |
// Test Use (allows to inject mocks) | |
ModuleAbcApi newTestInstance(externalModule) { | |
return newInstance(externalModule); | |
} | |
// Production Use |
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 |