This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* A helper file for Laravel 5, to provide autocomplete information to your IDE | |
* Generated for Laravel 5.5.13 on 2017-09-28. | |
* | |
* @author Barry vd. Heuvel <[email protected]> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ | |
namespace { | |
exit("This file should not be included, only analyzed by your IDE"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Pré-requis : charger la librairie Google Maps : | |
<script src="https://maps.googleapis.com/maps/api/js?key=...&sensor=false"></script> | |
*/ | |
// Adresses | |
var origin = '191 rue Saint-Jacques, Paris'; | |
var destination = '37 bd Romain Rolland, Montrouge'; | |
// Itinéraire |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Pré-requis : charger la librairie Google Maps, son module Geometry, et la librairie OpenLayers : | |
<script src="https://maps.googleapis.com/maps/api/js?key=...&libraries=geometry&sensor=false"></script> | |
<script src="http://openlayers.org/api/OpenLayers.js"></script> | |
*/ | |
// Carte | |
var cartographie = new OpenLayers.Map('carte'); // <div id="carte"></div> | |
var couche_osm = new OpenLayers.Layer.OSM('OSM'); | |
cartographie.addLayer(couche_osm); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Méthodologie : http://blog.adrienvh.fr/2014/04/09/calculer-le-rayon-de-cercles-proportionnels/ | |
*/ | |
// Distribution statistique | |
var distribution = [25, 46, 2, 39, 30, 21, 3, 19, 15, 5]; // http://www.random.org/integer-sets/ | |
var valeur_min = Math.min.apply(Math, distribution); | |
var valeur_max = Math.max.apply(Math, distribution); | |
// Calcul du rayon (diamètre minimal fixé) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/tasks/db.rake | |
namespace :db do | |
desc "Dumps the database to db/APP_NAME.dump" | |
task :dump => :environment do | |
cmd = nil | |
with_config do |app, host, db, user| | |
cmd = "pg_dump --host #{host} --username #{user} --verbose --clean --no-owner --no-acl --format=c #{db} > #{Rails.root}/db/#{app}.dump" | |
end | |
puts cmd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Exemples : | |
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}"> | |
- Or, request confirmation in the process - | |
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}" data-confirm="Are you sure?"> | |
*/ | |
(function() { | |