Skip to content

Instantly share code, notes, and snippets.

View ElementW's full-sized avatar
🗑️
Currently in a trash can

Céleste Wouters ElementW

🗑️
Currently in a trash can
View GitHub Profile
@ElementW
ElementW / uexplode.py
Created January 30, 2018 20:14
Python3 script to extract music from UE4 .uexp files
#!/usr/bin/env python3
import sys, os, errno
def mkdir_p(path):
try:
os.makedirs(path)
except OSError as exc:
if exc.errno == errno.EEXIST and os.path.isdir(path):
pass
@ElementW
ElementW / test.rmfj.json
Last active October 1, 2017 21:26
XML vs JSON for Radix maps
{ "type": "RadixMapFile",
"materials": [
"dev/wall00",
"boxes/dev00",
"dev/wall_1x1_00",
"dev/floor00",
"dev/colors/white",
"dev/water00"
],
"entities": [
@ElementW
ElementW / gfxstack.lua
Last active September 14, 2017 13:18
LÖVE transform stack test
local t = 0
function love.update(dt)
t = t + dt
end
function love.draw()
local w, h = love.graphics.getWidth(), love.graphics.getHeight()
love.graphics.clear(0, 0, 0)
love.graphics.translate(w/2, h/2)
love.graphics.push()
@ElementW
ElementW / black.css
Created June 12, 2017 18:49
Reveal standalone
/**
* Black theme for reveal.js. This is the opposite of the 'white' theme.
*
* By Hakim El Hattab, http://hakim.se
*/
section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
color: #222; }
/*********************************************
* GLOBAL STYLES
@ElementW
ElementW / PKGBUILD
Created May 25, 2017 01:58
glPortal debug AUR PKGBUILD
# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Maintainer: Geert Custers <[email protected]>
# Contributor: Jakob Gahde <[email protected]>
_pkgname=glportal
pkgname=${_pkgname}-git
pkgver=0.4.0.188.g857969c
pkgrel=1
epoch=1
pkgdesc="OpenGL puzzle game inspired by portal."
@ElementW
ElementW / a16ul_gpt.txt
Created November 1, 2016 23:38
HTC a16ul (Desire 530) ROM 1.08.401.2 (France) - GPT table contents
Disk identifier (GUID): 98101B32-BBE2-4BF2-A06E-2BB33D000C20
Partition table holds up to 68 entries
First usable sector is 34, last usable sector is 30523391
Partitions will be aligned on 2-sector boundaries
Total free space is 0 sectors (0 bytes)
Number Start (sector) End (sector) Size Code Name
1 34 65 16.0 KiB FFFF board_info
2 66 8257 4.0 MiB FFFF pg1fs
3 8258 10305 1024.0 KiB FFFF sbl1
@ElementW
ElementW / permutations.c
Created December 13, 2015 13:42
Function to output all next permutations of a given string, part of my C exercices
void anagrammes(char *s) {
/* Pask' trouver des algorithmes écrits en français c'est inefficace,
* voici la traduction en C du pseudocode donné par
* https://en.wikipedia.org/wiki/Permutation#Generation_in_lexicographic_order */
const int n = longueur(s);
puts(s);
while (1) {
int i, k = -1, l;
char c;
/* Find the largest index k such that a[k] < a[k + 1].