chars = "".join(map(chr, range(0x100, 0x500)))
def keyhash(s):
n = 1
for c in s:
n *= ord(c)
n //= 8
n <<= 2
n >>= 4
return n
def encrypt(s, key):
key = keyhash(key) & 0x1FFFFF
n = 0
b = s.encode("utf-8")
for c in b:
n <<= 24
n += c ^ key
enc = ""
while n:
enc += chars[n & 0x3FF]
n >>= 10
return enc
def decrypt(s, key):
key = keyhash(key) & 0x1FFFFF
n = 0
for c in s[::-1]:
n <<= 10
chars = "".join(map(chr, range(0x100, 0x500)))
def keyhash(s):
n = 0
for i, c in enumerate(s):
n += ord(c)
n *= i
n //= 2
return n ^ 0xFF
def encrypt(s, key):
key = keyhash(key) & 0xFF
n = 0
b = s.encode("utf-8")
for c in b:
n <<= 8
n += c ^ key
enc = ""
while n:
enc += chars[n & 0x3FF]
n >>= 10
return enc
def decrypt(s, key):
key = keyhash(key) & 0xFF
n = 0
for c in s[::-1]:
n <<= 10
so I had some concerns about macOS Sierra, and after I disabled the constant Documents & Downloads sync and updated to dev beta 2, it works like a charm, I get to return to Chrome as well :D
I just released Retina 0.8.2. It's a fairly big release with a new stage type, new substitution syntax and a couple new options. See the changelog or updated documentation for details.
I have an Eclipse 2.0 Java project glimpse-noodle with class GlimpseNoodle in package local.glimpsenoodle. And Eclipse 2.0's Package Explorer just doesn't want to show that to me.
It's annoying, because I have to trust the Navigator every time.
anumber now sold at your local grocery store!
anothernumber now sold at your local grocery store!
anumber: made by the makers of anothernumber
anumber has been selling out worldwide!
Write a program which outputs the square root of a given number in the shortest time possible.
Rules
It may not use any builtins or powering with numbers between 0 and 1.
Given number means submitted
as a function argument
as a command line argument
as a direct input on stdin or a window
Y...
> Sorry, we are having a spam problem. This question is currently impossible. We will try to figure something out soon. In the meanwhile, try to find "fizzie" on the freenode #esoteric channel.
ok wat
trying to create a esolang account and greeted by this thing
Fix: right click the item for the problem project in the Navigator - Properties - Java Build Path - Libraries - Advanced - Add Container: JRE System Library - choose a JVM - Finish. Bam done.
Next, resolve 21 other problem that just appeared.
Your Mom
Your Mom is a language that I have created after a message of mbomb007 on The Nineteenth Byte:
I think someone should create a language called "Your Mom", just so that during an argument over which language is a better one, they can interject that "Your mom is a better language"
S...
Anonymous
Looking at the chat flags will make you lose your faith in humanity
Anonymous
It'll either be "why did they think it was ok to say this?" or "why the hell would someone flag this?"
Introduction
We all know and love our Fibonacci sequence and have seen a myriad of challenge on it here already. However, we're still lacking a very simple case which this answer is going to provide: Reversed fibonacci! So given F_n your job is to find n.
Specification
Input
Your input will b...
BTW: would it be considered cheating if I would just create a huge bunch of languages all with a specific 0-byte built-in hoping that one day a challenge for this will be posted?
Anonymous
@SEJPM It's really more like somewhere in the range 34-850, depending on how many arguments the functions take
@LegionMammal978 Like, if you sign in and go to your Friends tab, there are boxes for friend keys. You can see the progress of your friends, and vice versa. Mine is 6702_cb48edab9c05ecd2c64c7fba6be6e290.
@LegionMammal978 Yeah, you could do it within a few hours. That's the cheaty way out though - there's a far more efficient solution.
If a program outputs some string. And then deletes part of the string with the backspace character (in java "\b"). And procedes to print the rest to spec. Would this be considered a violation?
Commercial, 75 bytes
I post a link to my implementation, but there is a link to the esolang page in the README
"Hello, World!" - Satisfied Consumer of x
x has been selling out worldwide!
This code is equivalent to the following pseudocode
Put "Hello, World!" in x
Print the value of x