Skip to content

Instantly share code, notes, and snippets.

View ericoporto's full-sized avatar
🎮
making

Érico Porto ericoporto

🎮
making
View GitHub Profile
@ericoporto
ericoporto / playonlinux.log
Created August 19, 2018 20:46
log output running ags 3.4.2-6
[08/19/18 17:33:27] - Running wine-3.1 AGSEditor.exe (Working directory : /home/USERNAME/.PlayOnLinux/wineprefix/ags342/drive_c/Program Files/Adventure Game Studio 3.4.2)
0012:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0012:fixme:process:SetProcessDEPPolicy (1): stub
0012:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
002b:err:module:load_builtin_dll failed to load .so lib for builtin L"winebus.sys": libudev.so.0: cannot open shared object file: No such file or directory
002b:err:winedevice:async_create_driver failed to create driver L"WineBus": c0000142
0009:fixme:thread:SetThreadStackGuarantee (0x33fc64): stub
002f:err:ole:CoGetContextToken apartment not initialised
0009:fixme:shell:URL_ParseUrl failed to parse L"System.Windows.Forms"
0009:fixme:shell:URL_ParseUrl failed to parse L"System"
@ericoporto
ericoporto / exercises.R
Last active September 27, 2018 20:06
Notes on Studying Statistics
#calculo de probabilidades em distribuições exponenciais
pexp(6,1/5,lower.tail = F)
xvals = seq(0,20,length = 1000)
dist = dexp(xvals, 1/5)
dev.new()
plot(xvals,dist,type = "l",
xlab = "Tempo de sobrevivencia",
ylab = "probabilidade",
@ericoporto
ericoporto / trabalho_canada.txt
Created October 29, 2018 01:21
Stuff about jobs in canada
##Job Search & Staffing Services
www.careerbuilder.ca
www.6figures.com
www.acsess.org
www.adecco.ca
www.allstarjobs.ca
www.auto-jobs.ca
www.bestjobsca.com
www.bridges.com
@ericoporto
ericoporto / valgrind.txt
Created December 28, 2018 09:13
Output of valgrind ./ags ~/Documents/AGS_Projects/AGS350/ags350Test/Compiled/Windows/ags350Test.exe
$ valgrind ./ags ~/Documents/AGS_Projects/AGS350/ags350Test/Compiled/Windows/ags350Test.exe
==4381== Memcheck, a memory error detector
==4381== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==4381== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==4381== Command: ./ags /home/username/Documents/AGS_Projects/AGS350/ags350Test/Compiled/Windows/ags350Test.exe
==4381==
Adventure Game Studio v3.5 Interpreter
Copyright (c) 1999-2011 Chris Jones and 2011-2018 others
ACI version 3.5.0.4
@ericoporto
ericoporto / getpixxycolor.py
Created January 7, 2019 01:33
get single pixel of an specific in a gif
from PIL import Image
import sys
def processImage(infile):
try:
im = Image.open(infile)
except IOError:
print("Cant load", infile)
sys.exit(1)
i = 0
var audioBuffer = audio.createBuffer(arrayBuffer, false), /* <- Input Audio */
offlineContext = new webkitAudioContext(1, audioBuffer.duration * 44100, 44100);
offlineContext.oncomplete = function(event) {
var buffer = event.renderedBuffer;
var UintWave = createWaveFileData(buffer);
var base64 = btoa(uint8ToString(UintWave));
document.getElementById("audio").src = "data:audio/wav;base64," + base64;
@ericoporto
ericoporto / aseToPng.sh
Created January 8, 2019 22:42
converts .ase file into a png, where each loop is also named and frames are numered per loop
#!/bin/sh
~/.steam/steam/steamapps/common/Aseprite/aseprite -b myfile.ase --filename-format '{title}-{tag}-{tagframe00}.{extension}' --save-as myfile.png
@ericoporto
ericoporto / issue.md
Last active February 2, 2019 02:21
android sketch
@ericoporto
ericoporto / Generate Normal Map.lua
Created March 10, 2019 02:29 — forked from ruccho/Generate Normal Map.lua
Lua script for Aseprite that generates normal map automatically.
----------------------------------------------------------------------
-- Generate Normal Map
--
-- It works only for RGB color mode.
----------------------------------------------------------------------
if app.apiVersion < 1 then
return app.alert("This script requires Aseprite v1.2.10-beta3")
end
if (y > 0) {
// possible to explore
color topPixel = img:getPixel(x, y - 1);
if (rgbaA(topPixel) < 255) {
top = 0;
} elseif y > 1 {
topPixel = img:getPixel(x, y - 2);
if (rgbaA(topPixel) < 255) {
top = 1 ;
}