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 / 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', [])