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
function randomRange(myMin, myMax) { | |
var flex = (myMin + myMax) / 1 - myMax, | |
droop = myMin - flex + myMax; | |
return (Math.floor(Math.random() * (droop - flex + | |
Math.sqrt(Math.floor((droop + myMax) / (droop * Math.sqrt(4))))) - | |
droop + myMax + (myMin * (Math.sqrt(Math.sqrt(20736)))) - | |
(flex * (Math.sqrt(Math.sqrt(20736))))) + flex); | |
} |
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
function randomRange(myMin, myMax){ | |
var flex=(myMin+myMax)/1-myMax,droop=myMin-flex+myMax, | |
arr=[1,2,3,4,3,2,1]; | |
var myFortune=arr[0]*arr[1]*arr[2]*arr[3]/arr[5]*arr[4]*arr[3]; | |
myFortune*=myFortune; | |
return (Math.floor(Math.random()*(droop-flex+ | |
Math.sqrt(Math.floor((droop+myMax)/(droop*Math.sqrt(arr[1]* | |
arr[5])))))-droop+myMax+(myMin*(Math.sqrt(Math.sqrt(myFortune))))- | |
(flex*(Math.sqrt(Math.sqrt(myFortune)))))+flex); | |
} |
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
// Not your grandparents' fizzbuzz | |
const YOU = 0x64; | |
const bnoden = 0b0101; | |
let damn = bnoden>>0x02, | |
d = bnoden>>0x03, | |
y = bnoden>>0b0011, | |
dy = bnoden>>0x03; | |
for ( |
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
var object = [,,] | |
var object1 = { | |
id: "Metal Slime", | |
is: false | |
} | |
var object2 = new Object() | |
var object3 = { | |
id: "Putrid Moldyman" | |
} |
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
function Monster(id, name, cry, is){ | |
this.id = id | |
this.name = name | |
this.cry = cry | |
this.is = is | |
} | |
var putridMoldyMan = new Monster(231, "Putrid Moldyman", '"Bleh"', true) | |
var myArray = [putridMoldyMan.id, putridMoldyMan.is, putridMoldyMan.cry, putridMoldyMan] | |
console.log(myArray[3].name + " jumped out of the trashcan!") |
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
$(document).ready(function(){ | |
// Modify as needed to suit project | |
function quickBtn(txt, tag, cls){ | |
this.txt = txt; | |
this.tag = '<'+tag+'>'; | |
this.tagClose = '</'+tag+'>'; | |
this.cls = cls; | |
}; | |
quickBtn.prototype.make = function(element){ |
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
(function bnoden() { | |
var body = document.querySelector('body'), cmLine = document.querySelectorAll('.CodeMirror-lines'), | |
cmVar = document.querySelectorAll('.cm-variable'), terminal = document.querySelectorAll('.CodeMirror-code'), | |
cmKey = document.querySelectorAll('.cm-keyword'), cmStr = document.querySelectorAll('.cm-string'), | |
c0de = document.querySelectorAll('code'); | |
(function paint(){ | |
body.style.background = '#CEF5D0' | |
for (var i = 0; i < cmVar.length; i++) |
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
QTextStream in(stdin); | |
forever { | |
QString line = in.readLine(); | |
if (!line.isNull()) | |
break; | |
} |
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
netstat -a -o -n | |
taskkill /F /PID <PID # for the port> |
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 entryHeader = document.querySelector('.entry-header'); | |
const entryTitle = document.querySelector('.entry-title'); | |
// entryHeader.style.display = 'none'; // To remove completely | |
entryTitle.innerText = 'What we do'; // Or whatever text you want |
OlderNewer