Michael Schmidt-Voigt M165437
- Berlin, Germany
- https://www.linkedin.com/in/mschmidtvoigt
View db-connect-test.php
<?php | |
# Fill our vars and run on cli | |
# $ php -f db-connect-test.php | |
$dbname = 'name'; | |
$dbuser = 'user'; | |
$dbpass = 'pass'; | |
$dbhost = 'host'; | |
$link = mysqli_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'"); |
View ScheduleList.php
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Console\Scheduling\Schedule; | |
class ScheduleList extends Command | |
{ | |
/** |
View 2017_11_10_194951_add_mime_type_to_media_table.php
<?php | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Support\Facades\Storage; | |
class AddMimeTypeToMediaTable extends Migration | |
{ |
View saveImageToPhone.js
/** | |
* Saves image to phone library/gallery | |
* with help of Cordova/Phonegap [Canvas2ImagePlugin][1] | |
* based on the function [getImageDataURL][2] by Raul Sanchez | |
* | |
* @param {String} url Location of the image file | |
* @param {Function} success Callback function | |
* @param {Function} error Error handler | |
* | |
* @example |
View tms2osm.js
/** | |
* TMS to OSM/Google Maps tile naming – node.js script that inverts row order/y axis | |
* assumes subfolders ./tiles/{z}/{x}/{y}.png | |
*/ | |
(function() { | |
// ShellJS | |
require('shelljs/global'); |