Laravel Migration Check Foreign Key if exist tested on laravel 5.0
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
function getFileMd5 ( file ) { | |
var dfd = jQuery.Deferred(); | |
/** | |
* reference: | |
* https://github.com/satazor/SparkMD5 | |
*/ | |
var blobSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice, | |
chunkSize = 2097152, // Read in chunks of 2MB | |
chunks = Math.ceil(file.size / chunkSize), | |
currentChunk = 0, |
// depends on jQuery | |
var PreloaderClass = function (urls) { | |
// holds the URLs passed | |
this.urls = urls; | |
// base loading | |
this.loadUrl = function ( url ) { | |
var supported, deferredLoading, xhr; |
rhc app-deploy master --app <domain/appname> | |
rhc env list -a <domain/appname> | |
rhc port-forward -a <domain/appname> | |
#"recover" jenkins account | |
cat jenkins/env/JENKINS_USERNAME | |
cat jenkins/env/JENKINS_PASSWORD |
// Brands | |
$brand-primary: #3097D1; | |
$brand-info: #8eb4cb; | |
$brand-success: #2ab27b; | |
$brand-warning: #cbb956; | |
$brand-danger: #bf5329; | |
.bs-callout { | |
padding: 20px; | |
margin: 20px 0; |
Laravel Migration Check Foreign Key if exist tested on laravel 5.0
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
# To work something like | |
# php .\artisan db:seed --class=UsersTableSeeder | |
# where `UsersTableSeeder` is a newly created class on seeder file | |
# you need to execute this first | |
composer dump-autoload | |
# Reference :) | |
#http://laravel.io/forum/01-31-2015-laravel5-seeder-reflectionexception-class-tableseeder-does-not-exist-in-illuminatecontainercontainerphp776 | |
# You should never forget, even when it sounds dummy to dump the autoload files with the command "composer dump-autoload" to make the seeders work properly. |
(function () { | |
// Image decoders (for web workers) | |
dwv.image.decoderScripts = dicom_extenstions; | |
// base function to get elements | |
dwv.gui.getElement = dwv.gui.base.getElement; | |
dwv.gui.displayProgress = function (percent) {}; | |
// create the dwv app | |
var app = new dwv.App(); |
<?php | |
# Exec during deployment | |
# php cloudflareWhitelistUpdate.php public/.htaccess | |
$srcUrls = [ | |
'https://www.cloudflare.com/ips-v4', | |
'https://www.cloudflare.com/ips-v6' | |
]; | |
$htacessFile = $argv[1] ?? '.htaccess'; |
function space_front(size, n) { | |
return size - n; | |
} | |
function space_mid(n) { | |
return (2 * n) - 3; | |
} | |
function is_top(n) { | |
return n > 1; |
#!/bin/bash | |
# Creator: Phil Cook | |
# Email: [email protected] | |
# Twitter: @p_cook | |
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g') | |
brew_array=("5.6","7.0","7.1","7.2") | |
php_array=("[email protected]" "[email protected]" "[email protected]" "[email protected]") | |
valet_support_php_version_array=("[email protected]" "[email protected]" "[email protected]" "[email protected]") | |
php_installed_array=() |