Skip to content

Instantly share code, notes, and snippets.

View codepo8's full-sized avatar

Christian Heilmann codepo8

View GitHub Profile
@codepo8
codepo8 / challenge.md
Last active February 2, 2024 13:12
The CODE 100 xxx-challenge

The CODE100 XXX challenge

It's not what you think… On the 29th of January CODE100 is coming to Amsterdam - you can get a ticket here to join the party and network or you can go the whole hog and apply as a challenger - remember, the winners get to the finals in July and last year's winner went home with 10,000 Euro prize money.

In any case, this time the puzzle is to celebrate Amsterdam and it's flag:

Flag of Amsterdam, two red bars with a black bar containing three white X

The challenge is to take a collection of 292 games of noughts and crosses (or Tic Tac Toe) and to find out how many were won by the player using the X like shown in this animation:

CODE100 Happy new year! Puzzle

Happy new year animation

Welcome to the first puzzle of 2024! To celebrate, we want you to take this dataset:

[
 0,0,0,121,231,143,195,118,216,
@codepo8
codepo8 / hitting-the-chimney.md
Created December 19, 2023 10:53
Hitting the chimney CODE100 Puzzle

CODE100 Puzzle - Hitting the chimney!

Santa facepalming because his presents didn't hit the chimney

This time the puzzle is about Santa hitting the chimney when delivering presents. You get points in a coordinate system that are the drop points of presents and you should sort them into different arrays: those that landed in the chimney, those that landed outside and those that landed on the chimney.

Ilustration showing points in the circle as grey, points outside the circle as black and points on the circle as green

You get the a JSON dataset of a coordinate system with a certain height and with and a circle in its center with a radius of 75 pixels that is 10 pixels wide.

@codepo8
codepo8 / snowflake.md
Created November 29, 2023 16:01
CODE100 puzzle - packed snowflake

Packed snowflake

Welcome to another CODE100 puzzle. This time your task, should you want to take it on, is to create an ASCII art snowflake from this dataset:

[
    "❄️","3x32",46,"6x32",
    46,"❄️","3x32",95,92,47,"2x32",92,
    47,95,"❄️","4x32",95,92,47,
 92,47,95,"❄️",95,92,95,92,95,92,47,92,47,95,

Thumbs up for the old school

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?

@codepo8
codepo8 / developerdna.md
Last active November 13, 2023 00:26
Developer DNA CODE100 Puzzle

Puzzle: Developer DNA

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"
@codepo8
codepo8 / codeblock-puzzle.md
Last active November 8, 2023 13:01
Code100 Puzzle: Code Block

Puzzle: Event Block

The challenge here is to turn this JSON object:

{
    "columns": 80,
    "padChar": "·",
    "events": [
 { "name": "CODE100", "location": "Zagreb, Croatia", "date": "29.11.2023" },
@codepo8
codepo8 / midjourney-ban-list.json
Created September 12, 2023 11:37
Midjourney banned words
{
"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"
],