Skip to content

Instantly share code, notes, and snippets.

Alejandro Cargnelutti alecarg

  • London, UK
Block or report user

Report or block alecarg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@munificent
munificent / generate.c
Last active Oct 23, 2019
A random dungeon generator that fits on a business card
View generate.c
#include <time.h> // Robert Nystrom
#include <stdio.h> // @munificentbob
#include <stdlib.h> // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
<b; y++) for (int x = c; x < d; x++)
typedef int i;const i H=40;const i W
=80;i m[40][80];i g(i x){r rand()%x;
}void cave(i s){i w=g(10)+5;i h=g(6)
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u
@Integralist
Integralist / Easy window and document mocking.md
Last active Oct 17, 2017
JavaScript: mocking the Window and Document objects
View Easy window and document mocking.md

In tabloid/webapp/php/sharedmodules/tabloid-shared/views/layout/base.spv we run...

require(['module/base', 'domReady'], function (base, domReady) {
    domReady(function () {
        base.init();
        <?php $this->newsPageJavaScript(); ?>
    });
});
@bebraw
bebraw / gameengines.md
Created Jan 6, 2011
List of JS game engines. You can find a wikified version at https://github.com/bebraw/jswiki/wiki/Game-Engines. Feel free to modify that. I sync it here every once in a while.
View gameengines.md

IMPORTANT! Remember to check out the wiki page at https://github.com/bebraw/jswiki/wiki/Game-Engines for the most up to date version. There's also a "notes" column in the table but it simply does not fit there... Check out the raw version to see it.

This table contains primarily HTML5 based game engines and frameworks. You might also want to check out the [[Feature Matrix|Game-Engine-Feature-Matrix]], [[Game Resources]] and [[Scene Graphs]].

Name Size (KB) License Type Unit Tests Docs Repository Notes
Akihabara 453 GPL2, MIT Classic Repro no API github Intended for making classic arcade-style games in JS+HTML5
AllBinary Platform Platform Dependent AllBinary 2D/2.5D/3D n
You can’t perform that action at this time.