I hereby claim:
- I am armincifuentes on github.
- I am acc (https://keybase.io/acc) on keybase.
- I have a public key whose fingerprint is C65E 541A 1097 FA99 C253 BA59 4050 C8B8 5457 A3ED
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class Zones extends Migration { | |
/** | |
* Run the migrations. | |
* |
{ | |
"id_local" : "123", | |
"imagen" : "archivo.jpg-O-arvhivo.png", | |
"observaciones" : "Un texto de que paso", | |
"georeferencia" : { | |
"latitud" : "23.234522", | |
"logitud" : "-12.44334" | |
}, | |
"ultima_aplicacion_producto" : "2014-12-15 15:45:12", | |
"fecha_real_tomada" : "2014-12-15 15:45:12", |
<?php | |
/* | |
* manyTroughMany() | |
* | |
* Enables access to distant relations | |
* using many-to-many pivot tables. | |
* | |
* Proposed by @terion-name at Laravel.io Forums | |
* http://laravel.io/forum/03-04-2014-hasmanythrough-with-many-to-many |
<option value=""></option> | |
<option value="ALGARROBO">ALGARROBO</option> | |
<option value="ALHUE">ALHUE</option> | |
<option value="ALTO BIOBIO">ALTO BIOBIO</option> | |
<option value="ALTO DEL CARMEN">ALTO DEL CARMEN</option> | |
<option value="ALTO HOSPICIO">ALTO HOSPICIO</option> | |
<option value="ANCUD">ANCUD</option> | |
<option value="ANDACOLLO">ANDACOLLO</option> | |
<option value="ANGOL">ANGOL</option> | |
<option value="ANTOFAGASTA">ANTOFAGASTA</option> |
$scope.$watch(function() { | |
return variable; | |
}, function(newValue, oldValue) { | |
// do things | |
} | |
}); |
function wordCount(text) { | |
return text | |
.replace(/[–,;.:!¡¿\-\?\(\)]/g, '') // remove punctuation | |
.replace(/<[^>]+>/g, ' ') // convert tags into whitespaces | |
.split(/\s/) // split across whitespaces | |
.filter(word => word.length) // remove empty keys | |
.length; | |
} |
<?php | |
namespace App\Policies; | |
use App\User; | |
use App\Institution; | |
use Illuminate\Auth\Access\HandlesAuthorization; | |
class InstitutionPolicy | |
{ |
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d |