This file contains 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
const audioContext = new (window.AudioContext || window.webkitAudioContext)(); | |
const play = (freq = 440, time = 2000) => { | |
const oscillator = audioContext.createOscillator(); | |
oscillator.connect(audioContext.destination); | |
oscillator.frequency.value = freq; | |
oscillator.start(); | |
setTimeout(() => { |
This file contains 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
class Color { | |
// Reset | |
public static final String RESET = "\033[0m"; // Text Reset | |
// Regular Colors | |
public static final String BLACK = "\033[0;30m"; // BLACK | |
public static final String RED = "\033[0;31m"; // RED | |
public static final String GREEN = "\033[0;32m"; // GREEN | |
public static final String YELLOW = "\033[0;33m"; // YELLOW | |
public static final String BLUE = "\033[0;34m"; // BLUE |
NewerOlder