Skip to content

Instantly share code, notes, and snippets.

Avatar
🎮
making

Érico Vieira Porto ericoporto

🎮
making
View GitHub Profile
View ags.md

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 (http://www.opensource.org/licenses/artistic-license-2.0.php). 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
flibitijibibo / flibitPackaging.md
Created Jun 17, 2016
Hope you like reading ldd output!
View flibitPackaging.md

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:

http://www.flibitijibibo.com/magfest2016/

https://www.youtube.com/watch?v=B83CWUh0Log

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
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 (boehme@inb.uni-luebeckREMOVETHIS.de)
// Tested on Gentoo, CVS version 5/01/07 compiled with GCC 4.1.1
// With updates from https://github.com/chelyaev/ffmpeg-tutorial
// 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
View github-wiki-how-to.md

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: git@github.com:myorg/myrepo.wiki.git (for ssh) or https://github.com/my/myrepo.wiki.git (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
daniellevass / littlebits.md
Last active Oct 23, 2016
littlebits hack day @ bristol
View littlebits.md

##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
daniellevass / article.md
Last active Nov 13, 2015
project tigr books
View article.md

#Project Tigr Books

Imgur

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
mustafaakin / README.md
Last active Aug 17, 2020
Running Windows Server 2k16 with Docker under Linux, KVM or Virtualbox
View README.md

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
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.