If 44-33-555-555-666
is hello
and 9-666-777-555-3
is world
, what is:
9-33-0-2-777-33-0-3-33-888-33-555-666-7-33-777-7777
= ???
Can you do an encoder/decoder for this way of writing?
Welcome to another CODE100 puzzle. The challenge is to take this JSON dataset:
{
"cols": 30,
"sine": [
"-0.93", "-0.60", "-0.33", "-0.13", "0.00",
"0.00", "-0.13", "-0.33", "-0.60", "-0.93"
The challenge here is to turn this JSON object:
{
"columns": 80,
"padChar": "·",
"events": [
{ "name": "CODE100", "location": "Zagreb, Croatia", "date": "29.11.2023" },
{ | |
"Gore": [ | |
"Blood", "Bloodbath", "Crucifixion", "Bloody", "Flesh", "Bruises", "Car crash", "Corpse", "Crucified", "Cutting", "Decapitate", "Infested", "Gruesome", "Kill (as in Kill la Kill)", "Infected", "Sadist", "Slaughter", "Teratoma", "Tryphophobia", "Wound", "Cronenberg", "Khorne", "Cannibal", "Cannibalism", "Visceral", "Guts", "Bloodshot", "Gory", "Killing", "Surgery", "Vivisection", "Massacre", "Hemoglobin", "Suicide", "Female Body Parts" | |
], | |
"Drugs": [ | |
"Drugs", "Cocaine", "Heroin", "Meth", "Crack" | |
], | |
"Clothing": [ | |
"no clothes", "Speedo", "au naturale", "no shirt", "bare chest", "nude", "barely dressed", "bra", "risqué", "clear", "scantily", "clad", "cleavage", "stripped", "full frontal unclothed", "invisible clothes", "wearing nothing", "lingerie with no shirt", "naked", "without clothes on", "negligee", "zero clothes" | |
], |
function hab() { | |
var t = document.createElement('div'); | |
t.innerHTML = ' '; | |
t.className = 'ad doubleclick google-ad adsbox pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads skyscraper text-ad-links'; | |
var e = !(t.style = 'width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;'); | |
try { | |
document.body.appendChild(t); | |
var a = document.getElementsByClassName('adsbox')[0]; | |
if (0 !== a.offsetHeight && 0 !== a.clientHeight || (e = !0), void 0 !== window.getComputedStyle) { var d = window.getComputedStyle(a, null); !d || 'none' != d.getPropertyValue('display') && 'hidden' != d.getPropertyValue('visibility') || (e = !0) } document.body.removeChild(t) | |
} |
var tryCount = 0; | |
var minimalUserResponseInMiliseconds = 200; | |
function check() { | |
console.clear(); | |
before = new Date().getTime(); | |
debugger; | |
after = new Date().getTime(); | |
if (after - before > minimalUserResponseInMiliseconds) { | |
document.write(" Dont open Developer Tools. "); | |
self.location.replace(window.location.protocol + window.location.href.substring(window.location.protocol.length)); |