Skip to content

Instantly share code, notes, and snippets.

View noidexe's full-sized avatar
👾
Making games. Being happy.

Lisandro Lorea noidexe

👾
Making games. Being happy.
View GitHub Profile
@noidexe
noidexe / script.cs
Created October 12, 2017 17:26
Godot sample script: GDScript vs C#
using Godot;
using System;
public class SharpBird : Node2D
{
// Member variables here, example:
// private int a = 2;
// private string b = "textvar";
private double direction;
Random r = new Random();
@noidexe
noidexe / PyxelEdit-LicenseFix.cmd
Last active May 11, 2017 15:58
Pyxel Edit License Fix (Windows)
@echo OFF
echo.=================================
echo.PYXEL EDIT LICENSE FIX BY NOIDEXE
echo.Gist at https://goo.gl/hXVb7q
echo.Remember to run as admin
echo.=================================
echo.
set licensefile="C:\Program Files\PyxelEdit\Settings\LicenseKey.txt"
set licensefilex64="C:\Program Files (x86)\PyxelEdit\Settings\LicenseKey.txt"
set exepath="C:\Program Files\PyxelEdit\PyxelEdit.exe"
@noidexe
noidexe / restartWacom.cmd
Last active June 14, 2016 12:34
Fix for 'WACOM DRIVER NOT FOUND'
@echo OFF
REM ===========================================
REM SIMPLE SERVICE RESTARTER FOR WACOM TABLETS.
REM FIXES 'DRIVER NOT FOUND' ISSUE. BY LISANDRO
REM LOREA. MODIFY AND/OR REDISTRIBUTE AT WILL.
REM ===========================================
set errorlevel=
echo Stopping Wacom Tablet Service
net stop WTabletServicePro
if errorlevel 2 (
REM Reemplaza las lineas echo por el comando del conversor
REM Copia este archivo a la carpeta donde esten los wavs y ejecutalo
@echo off
for %%f in (*.wav) do call:mifuncion %%f
GOTO:end
:mifuncion
echo.aca se convertiria %1 a mp3
echo.aca se convertiria %1 a ogg
@noidexe
noidexe / build-spigot-update.ps1
Created March 14, 2015 19:26
Script to build Spigot on windows using PowerShell
#To use just do: [Right Click]->[Run in PowerShell]
$source = "https://hub.spigotmc.org/jenkins/job/BuildTools-Beta/lastSuccessfulBuild/artifact/target/BuildTools.jar"
#Once the new BuildTools are out of beta chage the url above to:
#https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
$destination = "BuildTools.jar"
Invoke-WebRequest $source -OutFile $destination
@noidexe
noidexe / chromeinstaller.ps1
Created December 22, 2014 13:45
No need to open The Unholy One just to install a better browser.
Import-Module bitstransfer
start-bitstransfer -source https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7B8D0E78F8-C54C-F786-2AC8-F2CC9F39674B%7D%26lang%3Den%26browser%3D4%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable/update2/installers/ChromeSetup.exe -destination .\ChromeSetup.exe
.\ChromeSetup.exe
@noidexe
noidexe / MovableTile.js
Last active August 29, 2015 14:05
Movable Tile
MovableTile.prototype.postTileAnimation = function () {
//mover el sprite a donde no se vea
this.x = -100;
this.y = -100;
//restaurar el tile
_tile.map.putTile(_tile.index, _tile.x, _tile.y)
};
MovableTile.prototype.doTileAnimation = function () {