Skip to content

Instantly share code, notes, and snippets.


Érico Vieira Porto ericoporto

View GitHub Profile

Welcome to Adventure Game Studio! This new Windows Help version of the manual should help you get even more out of AGS. Enjoy!

Copyright and terms of use {#copyright-and-terms-of-use .unnumbered}

Copyright (c) 1999-2011 Chris Jones and 2011-2016 various contributors.

The software is provided under Artistic License 2.0 ( Adventure

View bmp file read and write
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
typedef struct _lbheader{
unsigned short identifier; // 0x0000
unsigned int filesize; // 0x0002
unsigned int reserved; // 0x0006
flibitijibibo /
Created Jun 17, 2016
Hope you like reading ldd output!

A week ago I was CC'd in on a thread about Linux packaging, and how to avoid doing it the wrong way (i.e. RPM, Deb, etc.). I've always used MojoSetup and I've never forced distributions to do any additional work, but this is still a new concept to a lot of people. Additionally, Amos suggested that I expand on Itch's FNA appendix, so here's a guide on how I package my games.

This is a bit of an expansion on my MAGFest 2016 presentation, which you can find here:

I would recommend looking at that first! After that, read on...

View WhereAmINot.ino
* Arduino Anti-GPS Silliness
* by Connor Nishijima 2016
* By reading the frequency of AC cycles in your house using an open analog pin,
* I can tell you for sure what countries you AREN'T in. Pretty god damn useless,
* but fun, nonetheless.
* You'll need an Arduino Mega to fit the array of Strings below, Uno doesn't cut it
* even with use of PROGMEM. The Sketch is also written to use the Seeed Studio TFT
MarcoQin / ffmpeg_tutorial05.c
Last active Nov 24, 2020
ffmpeg tutorial 05 with SDL2 and audio resampling fix
View ffmpeg_tutorial05.c
// tutorial05.c
// A pedagogical video player that really works!
// Code based on FFplay, Copyright (c) 2003 Fabrice Bellard,
// and a tutorial by Martin Bohme (
// Tested on Gentoo, CVS version 5/01/07 compiled with GCC 4.1.1
// With updates from
// Updates tested on:
// LAVC 54.59.100, LAVF 54.29.104, LSWS 2.1.101, SDL 1.2.15
// on GCC 4.7.2 in Debian February 2015

How do I clone a GitHub wiki?

Any GitHub wiki can be cloned by appending wiki.git to the repo url, so the clone url for the repo https://myorg/myrepo/ is: (for ssh) or (for https).

You make edits, and commit and push your changes, like any normal repo. This wiki repo is distinct from any clone of the project repo (the repo without wiki.get appended).

How do I add images to a wiki page?

daniellevass /
Last active Oct 23, 2016
littlebits hack day @ bristol

##1 starting

Firstly, using terminal install YQL and request if you don't have it already:

npm install request
npm install yql

Create a new .js file - make sure you can navigate to it with the terminal prompt to run.

daniellevass /
Last active Nov 13, 2015
project tigr books

#Project Tigr Books


Getting more young people interested in technology is vital for the sustainability of the tech industry in Bath and Bristol. We've written here before about what we're doing teaching in the Bath area, and why other people should start helping us too.

We're now on kickstarter with a project to turn some of our online materials into physical books to make it easier for more people to teach their own friends and family to code. Our materials are not a railroad of instructions, unlike most typical code websites where everyone makes exactly the same thing; however they inspire creativity and everyone makes something different. For example, one book will teach creating your own interactive emoji. Our materials are also accessible

mustafaakin /
Last active Aug 17, 2020
Running Windows Server 2k16 with Docker under Linux, KVM or Virtualbox

Are you let down when you saw there is no guide to use Windows Server 2016 under *nix environments? I really loved Microsoft when I heard they are working on Windows containers, but when this week has arrived, it was sad to see that installation requirements were Windows and HyperV. But actually it is not. You just have to modify the VHD file a bit with nicer tools and execute the already available script in the downloaded VM. I will assume you are running a decent version of Linux and accepted EULA and all the legal stuff that I do not care.

1. Getting the required tools:

$ sudo apt-get install qemu-kvm virt-manager // or virtualbox, but we need qemu-kvm for image manipulation
$ sudo apt-get install qemu-utils libguestfs-tools // image manipulation tools

2. Downloading files

outofmbufs / iftttmaker.ino
Last active Apr 7, 2020
Arduino code to trigger an IFTTT/Maker event
View iftttmaker.ino
// The MIT License
// Copyright (c) 2015 Neil Webber
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
You can’t perform that action at this time.