Skip to content

Instantly share code, notes, and snippets.

View codepo8's full-sized avatar

Christian Heilmann codepo8

View GitHub Profile
@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 / resizer.js
Created February 1, 2012 15:20
Resize image to thumbnail size
function resize( imagewidth, imageheight, thumbwidth, thumbheight ) {
var w = 0, h = 0, x = 0, y = 0,
widthratio = imagewidth / thumbwidth,
heightratio = imageheight / thumbheight,
maxratio = Math.max( widthratio, heightratio );
if ( maxratio > 1 ) {
w = imagewidth / maxratio;
h = imageheight / maxratio;
} else {
w = imagewidth;
@codepo8
codepo8 / transformvideo.js
Created January 18, 2011 16:02
A video player with zoom and rotate
/*
Zooming and rotating HTML5 video player
Homepage: http://github.com/codepo8/rotatezoomHTML5video
Copyright (c) 2011 Christian Heilmann
Code licensed under the BSD License:
http://wait-till-i.com/license.txt
*/
(function(){
/* predefine zoom and rotate */
@codepo8
codepo8 / transmission-resouces.md
Last active January 28, 2023 20:41
Resources of the Transmission64 "Cheating like a pro" presentation