Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

世外桃源 KPT-D jjhesk

  • HKM Consulting, Zyntauri, ARI
  • Dubai
View GitHub Profile
View io-ws1m.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View index.html
<style id="jsbin-css">
/* Now with ugly css! */
textarea {
width: 90%;
}
input {} button {
font-size: 2em;
padding: 1%;
margin: 2%;
View index.html
<style id="jsbin-css">
/* Now with ugly css! */
textarea {
width: 90%;
}
input {} button {
font-size: 2em;
padding: 1%;
margin: 2%;
View index.html
<style id="jsbin-css">
/* Now with ugly css! */
textarea {
width: 90%;
}
input {} button {
font-size: 2em;
padding: 1%;
margin: 2%;
View index.html
<style id="jsbin-css">
/* Now with ugly css! */
textarea {
width: 90%;
}
input {} button {
font-size: 2em;
padding: 1%;
margin: 2%;
View index.html
<style id="jsbin-css">
/* Now with ugly css! */
textarea {
width: 90%;
}
input {} button {
font-size: 2em;
padding: 1%;
margin: 2%;
View index.html
<style id="jsbin-css">
/* Now with ugly css! */
textarea {
width: 90%;
}
input {} button {
font-size: 2em;
padding: 1%;
margin: 2%;
View check the number
function check(event) {
var randomize = document.getElementById('randomize').value;
// var pattern = /"(.+?)" "(.+?)" "(.+?)" "(.+?)"/;
var ss, ssh, cs, nb, sn;
clear();
if (randomize.length > 64) {
@jjhesk
jjhesk / hash-explain.js
Created Dec 27, 2018
explain hash from the given random hash
View hash-explain.js
const gameResult = (seed) => {
const nBits = 52; // number of most significant bits to use
// 1. r = 52 most significant bits
seed = seed.slice(0, nBits / 4);
const r = parseInt(seed, 16);
// 2. X = r / 2^52
let X = r / Math.pow(2, nBits); // uniformly distributed in [0; 1)
// 3. X = 99 / (1-X)
X = 99 / (1 - X);
// 4. return max(trunc(X), 100)
View random number bets
2018-12-04 01:15:09.025INFO ▶ c- [[1.292363 3.312927 3.065309 3.242136 1.203257 4.001583 2.836283 2.264964 2.137190 3.127340 1.005102 2.290770 2.845307 1.884604 2.017701 5.114490 2.119255 1.245514 3.799260 6.132975 6.053459 2.027390 4.401002 3.257526 1.039752 1.168899 2.580058 1.619626 1.793723 5.016340 3.834436 1.662155 2.387116 1.482344 1.727522 1.231348 1.127439 2.244374 3.014714 1.722968 4.016919 2.340494 1.543943 3.388947 3.636658 3.494940 2.782590 2.547370 2.213639 1.036395 1.124087 1.935866 2.867643 2.395242 4.298023 2.364736 2.039248 1.261134 4.211161 1.647302 1.217133 2.517115 2.592353 4.564924 1.312681 1.414053 1.999374 2.493750 1.017453 5.279860 4.229359 2.641408 3.472299 4.818475 1.537027 1.159406 4.198723 3.249691 2.231448 2.484475 4.837269 1.661167 3.858578 2.048083 1.214384 1.148181 1.992410 2.123705 2.076662 2.049664 3.188124 1.882609 1.164327 4.855956 3.262413 2.355339 1.927809 3.349357 2.593451 1.879289 4.532884 5.837416 1.910463 4.345433 1.532999 1.071499 1.160345 1.665998 6.243457 1.81785
You can’t perform that action at this time.