Skip to content

Instantly share code, notes, and snippets.

@fcingolani
fcingolani / AStar2D Visualizer for Godot.md
Last active July 17, 2022 15:08
AStar2D Visualizer for Godot
  1. Create a Node2D.
  2. Attach AStart2DVisualizer.gd to it.
  3. Somewhere in your code pass your AStar2D instance to its .visualize(astar) method, i.e.: get_node(path_to_your_visualizer_node).visualize(astar)
  4. Then run your game and you should see something like this:

screenshot

Tocá los billetes para ponerle un freno al dólar:
💸💸💸💸‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎ ‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎ ‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎ ‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎ ‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏‎‏
@fcingolani
fcingolani / check-umbraco-lastsyncedids.rb
Last active October 5, 2016 18:13
Sensu check script for Umbraco's distributed cache last synced IDs
#! /usr/bin/env ruby
#
# check-umbraco-lastsyncedids.rb
#
# DESCRIPTION:
# Checks several Umbraco lastsynced.txt and compares their contents.
# Will trigger a CRIT or WARN if their difference is beyond thresholds.
#
# OUTPUT:
# plain text
@fcingolani
fcingolani / README.md
Last active July 31, 2020 01:52
How to use Glance-Bookmarklet (ex OpenSpritz)

How to use Glance-Bookmarklet (ex OpenSpritz)

OpenSpritz changed its name to Glance-Bookmarklet, and the old bookmarklet stopped working because of this. You can solve this issue following these steps.

Installation

  1. Go to http://miserlou.github.io/Glance-Bookmarklet/
  2. Drag the "OpenSpritz this!" button (the leftmost one) to your bookmarks bar.
  3. Edit the newly created bookmark, modify its URL to:
@fcingolani
fcingolani / FlxFSM.hx
Created July 24, 2015 04:32
FlxFSM - HaxeFlixel Finite State Machine. Backported to HaxelFlixel 3.x from 4.x (https://github.com/HaxeFlixel/flixel-addons/blob/dev/flixel/addons/util/FlxFSM.hx).
package;
import PlayState;
import flixel.interfaces.IFlxDestroyable;
import flixel.util.FlxDestroyUtil;
import flixel.util.FlxPool;
import flixel.util.FlxSignal;
/**
* A generic FSM State implementation. Extend this class to create new states.
@fcingolani
fcingolani / Glue.cs
Last active August 29, 2015 14:23
Glue.cs - A Unity3D nasty global container for the sake of decoupling.
using UnityEngine;
static class Glue
{
public static AudioManager audio;
public static LevelManager level;
public static PrefabManager prefabs;
public static SocialManager social;
public static UIManager ui;
@fcingolani
fcingolani / README.md
Last active January 19, 2018 04:29
Audio support for Phaser 2.3.0 on Apache Cordova / PhoneGap
  1. Add the [https://github.com/floatinghotpot/cordova-plugin-nativeaudio](Cordova Native Audio Plugin) to your project:

     cordova plugin add cordova-plugin-nativeaudio
    
  2. Include sound-patch.js in your HTML, or just paste the code wherever you want it.

This doesn't support looping or volume. Modify the code to use NativeAudio.preloadComplex accordingly.

@fcingolani
fcingolani / index.js
Last active August 29, 2015 14:21
Ejemplo de authn simple en ExpressJS
var express = require('express');
var app = express();
// middleware que obtiene los roles del usuario actual
app.use(function (req, res, next){
if(req.query.admin){
req.role = "admin";