Skip to content

Instantly share code, notes, and snippets.

View diegolamanno's full-sized avatar
🏠
Working from home

Diego La Manno diegolamanno

🏠
Working from home
View GitHub Profile
@diegolamanno
diegolamanno / machine.js
Last active October 10, 2019 16:32
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@diegolamanno
diegolamanno / machine.js
Created September 24, 2019 15:42
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions

Keybase proof

I hereby claim:

  • I am diegolamanno on github.
  • I am diegolamanno (https://keybase.io/diegolamanno) on keybase.
  • I have a public key ASDc8pSCHVFkgzDbM_NqfjnZn94ycOQZ9WS3Y5vSeUiptQo

To claim this, I am signing this object:

@diegolamanno
diegolamanno / widget-boilerplate-wordpress-vip.php
Last active December 1, 2016 05:39
Wordpress Widget boilerplate using Wordpress VIP standards.
<?php
/**
* Plugin Name: Widget Boilerplate Wordpress VIP
* Plugin URI: http://diegolamanno.com
* Description: Basic template for Wordpress Widget creation. Based on Daniel Pataki boilerplate.
* Version: 1.0.0
* Author: Diego La Manno
* Author URI: http://diegolamanno.com
* License: GPL2
*
@diegolamanno
diegolamanno / Inflect.php
Created September 26, 2016 16:21 — forked from tbrianjones/Inflect.php
A PHP Class for converting English words between Singular and Plural.
<?php
// original source: http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/
/*
The MIT License (MIT)
Copyright (c) 2015
Permission is hereby granted, free of charge, to any person obtaining a copy
/**
* the HTML5 autofocus property can be finicky when it comes to dynamically loaded
* templates and such with AngularJS. Use this simple directive to
* tame this beast once and for all.
*
* Usage:
* <input type="text" autofocus>
*/
angular.module('utils.autofocus', [])