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
| var man = { | |
| "attributes": ["Sadness", "Anger", "Happiness", "Loneliness"] | |
| }; | |
| var walk = function(person){ | |
| while(true){ | |
| console.print("Walk of Life"); | |
| } | |
| } | |
| walk(man); |
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
| "use strict" | |
| var UniversalTruth = require("./UniversalTruth.js").UniversalTruth; | |
| class EnergyMatter extends UniversalTruth{ | |
| constructor(hypothesis){ | |
| super(hypothesis) | |
| this.energy = 100; //finite energy | |
| this.matter = 0; //finite mass | |
| this.inverseFlag = true; | |
| } | |
| execution() { |
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
| var audioContext = new (window.AudioContext || window.webkitAudioContext)(); | |
| navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; | |
| // Using arrow functions from ES 6 | |
| navigator.getUserMedia({ audio: true }, (stream) => { | |
| // API works in a pipe mechanism | |
| const gain = audioContext.createGain(); | |
| const audioSource = audioContext.createMediaStreamSource(stream); | |
| // we connect the gain pipe to the audio source pipe. | |
| var gainNode = audioSource.connect(gain); |
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
| var audioContext = new (window.AudioContext || window.webkitAudioContext)(); | |
| navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; | |
| // Using arrow functions from ES 6 | |
| navigator.getUserMedia({ audio: true }, (stream) => { | |
| // API works in a pipe mechanism | |
| const gain = audioContext.createGain(); | |
| const audioSource = audioContext.createMediaStreamSource(stream); | |
| // we connect the gain pipe to the audio source pipe. | |
| var gainNode = audioSource.connect(gain); |
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 writeUTFBytes(dataview, offset, string) { | |
| for(let i = 0; i < string.length; i++) { | |
| dataview.setUint8(offset + i, string.charCodeAt(i)); | |
| } | |
| } | |
| function mergeBuffers(buffer, length) { | |
| const result = new Float32Array(length); | |
| let offset = 0; | |
| for(let i = 0; i < buffer.length; i++) { |
OlderNewer