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
{ | |
"workbench.colorTheme": "Nord", | |
"editor.fontFamily": "Hack", | |
"editor.fontSize": 14, | |
"terminal.integrated.fontFamily": "Hack", | |
"terminal.integrated.fontSize": 12, | |
"workbench.startupEditor": "newUntitledFile", | |
"files.trimTrailingWhitespace": true, | |
"emmet.includeLanguages": { | |
"vue-html": "html", |
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
// ouput all available form field names to console (copy paste it from there for a standard validation rules config object) | |
$.fn.generateDefaultValidationRules = function() { | |
var allFields = []; | |
var validationRulesString = ''; | |
var allInputs = donationform.find(':input'); | |
allInputs.each(function(index, element) { | |
var fieldName = $(element).attr('name'); | |
if (jQuery.inArray(fieldName, allFields) === -1 && $(element).attr('type') !== 'hidden' && fieldName !== undefined) { | |
allFields.push(fieldName); | |
validationRulesString += fieldName + ': \'required\',\r\n'; |
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 | |
function cmp($a, $b) { | |
$sortOrder = array( | |
'3/0', '2/0', '1/0', '1', '2', '3' | |
); | |
$sortOrderPositionA = array_values(array_keys($sortOrder, $a['name'])); | |
$sortOrderPositionB = array_values(array_keys($sortOrder, $b['name'])); |
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 | |
function cmp($a, $b) { | |
$sortOrder = array( | |
'3/0', '2/0', '1/0', '1', '2', '3' | |
); | |
$sortOrderPositionA = array_shift(array_keys($sortOrder, $a['name'])); | |
$sortOrderPositionB = array_shift(array_keys($sortOrder, $b['name'])); |
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
nzz.init.base(Y, { | |
publication: 'nzz', | |
platform: 'desktop', | |
databaseSize: 5242880, | |
date: '2012/05/10', | |
activeMenuItem: 'front' | |
}); | |
if (nzz.history) { | |
nzz.history.addHistory('Front - NZZ Webpaper', 'http://nzz.lo/app_dev.php/2012/05/10/front/', '2012/05/10', 'front'); |