Skip to content

Instantly share code, notes, and snippets.

View clarkio's full-sized avatar
🎷
Cool Jazz

Brian Clark clarkio

🎷
Cool Jazz
View GitHub Profile
{ "english": [
"lane",
"logging",
"going",
"lingo",
"long",
"gong",
"loin",
"lion",
"ogling",
{"words": ["flan","lane","logging","going","lingo","long","ling","gong","loin","lion","lino","ogling","clop","flop","flip","corf","project","tore","crept","trope","pore","core","port","repo","poet","rope","rote","cope","cote","coper","puck","cake","pace","cape","cupcake","peck","pack","puke","peak","puce","lain","nail","cynical","cynic","cyan","clan","finance","cane","fine","fain","nine","cine","fiance","cafe","face","ministry","minis","mini","mist","stir","tins","mints","mint","nits","misty","tiny","minty","trims","trim","rims","exes","exceeds","seed","exceed","sexed","execs","exec","cede","dexes","cedes","beat","debt","beta","teed","debate","date","bead","bate","beet","bade","abet","abed","bated","demand","mane","made","dean","amend","maned","mead","amen","madden","damned","damn","dead","cricket","tick","trick","crick","rick","trike","rice","cite","kite","rite","tire","trice","trek","bloat","biathlon","ramp","roar","romp","wherever","where","ever","here","revere","were","reeve","ewer","hewer","buttons","but
console.log('setting up the hidden speaker...');
const utt = new SpeechSynthesisUtterance('You can\'t find me! hahahaha');
const speakIt = () => { speechSynthesis.speak(utt); }
const i = setInterval(speakIt, 5000);
console.log('set up complete and speaker will speak soon');
console.log('This was loaded remotely and executed locally');
console.log('HELLO FROM A GIST SCRIPT!!!!');
@clarkio
clarkio / obs-websocket.js
Last active December 19, 2024 02:22
Connecting to OBS Websocket Server with Authentication
const obsConfig = {
address: '127.0.0.1',
port: 4455,
password: 'your-password'
}
const socket = new WebSocket(`ws://${obsConfig.address}:${obsConfig.port}`);
const password = obsConfig.password;
socket.onopen = function(event) {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@clarkio
clarkio / tts.js
Last active June 12, 2020 18:48
web browser text to speech example
var synth = window.speechSynthesis;
// to see how many and which voices you have available
console.log(synth.getVoices());
var utterThis = new SpeechSynthesisUtterance('Get good Brian');
synth.speak(utterThis);
{
"files.exclude": {
".env": false
},
"workbench.colorCustomizations": {
"editorGroup.border": "#102a44",
"sideBar.border": "#102a44",
"tab.activeBorder": "#ff00ff",
"tab.activeModifiedBorder": "#ff00ff",
"activityBar.background": "#b300b3",
@clarkio
clarkio / stream.js
Created June 19, 2019 23:21
@parithon's example of binding this to resolve the issue with our tests for these functions while attempting to wrap in a spy from sinonjs
function startMonitoring(milliseconds) {
return getStatusEvery.bind(this).(milliseconds)
}
function getStatusEvery(milliseconds) {
this.getStreamStatus();
return setInterval(this.getStreamStatus, milliseconds);
}