This file contains 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 | |
namespace App\Http\Middleware; | |
use Closure; | |
use Symfony\Component\HttpFoundation\ParameterBag; | |
/** | |
* @author https://github.com/Stunext | |
* | |
* PHP, and by extension, Laravel does not support multipart/form-data requests when using any request method other than POST. |
This file contains 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 | |
define('OU_PL_OPTIONS', 'OU_PL_OPTIONS'); | |
define('OU_PL_PREFIX', 'OU_PL_PREFIX'); | |
define('OU_PL_TEXTDOMAIN', 'OU_PL_TEXTDOMAIN'); | |
if( !class_exists( 'OU_Settings' ) ) { | |
class OU_Settings { | |
/** | |
* Option | |
* |
This file contains 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
var fs = require('fs'); | |
var path = require('path'); | |
var readline = require('readline'); | |
var args = process.argv.slice(2); | |
var clientName, projectName; | |
clientName = projectName = args[0]; | |
if( args[1] ){ | |
projectName = args[1]; |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
import sublime | |
import sublime_plugin | |
import string | |
class MultiSelectNumbersCommand( sublime_plugin.TextCommand ): | |
def run(self, edit): | |
view = self.view; | |
window = view.window() | |
def countThoseSelections(pattern): |
This file contains 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
$('.typeahead').typeahead({ | |
}); | |
var groupFocusTimer; | |
$('.group').on('change', function (e) { | |
if (e.target.value == "") { | |
return; | |
} |
This file contains 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
$('.typeahead').typeahead({ | |
}); | |
$('.group').on('change', function (e) { | |
if (e.target.value == "") { | |
return; | |
} |
This file contains 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
$('.borderedBox, #content').each(function() { | |
var t = $(this), | |
mainClasses = this.className, | |
mainIds = this.id, | |
idAttr = ( mainIds ? ' id="' + mainIds + '"' : '' ), | |
classAttr = ( mainClasses ? ' class="' + mainClasses + '"' : '' ); | |
t.wrap('<div ' + idAttr + classAttr + ' / >'); | |
t.removeAttr('class').removeAttr('id'); | |
}); |