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
const defaultColor = 'GREEN'; | |
const colors = { | |
0: 'RED', | |
1: 'PINK', | |
2: 'PURPLE' | |
}; | |
const scoreColors = new Proxy(colors, { | |
get: function (obj, prop) { | |
return obj.hasOwnProperty(prop) ? object[prop] : defaultColor; |
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
const prox = new Proxy({}, { | |
get: function (obj, prop) { | |
return obj.hasOwnProperty(prop)? object[prop]: 'default'; | |
} | |
}); |
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 | |
/** | |
* Provides a way to call the PDO statically | |
* @author Jonas Tomanga <[email protected]> | |
* @version 2.0 | |
*/ | |
class DB { | |
/** |
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
(function() { | |
/* This method is to match two input elements */ | |
jQuery.validator.addMethod("match", function(value, element, options) { | |
if (value === $(options).val()) { | |
return true; | |
} else { | |
return false; | |
} |
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
/* zurb foundation 4 grid column fix for ie8 and below */ | |
@mixin columnFix($columns: 12){ | |
$i: 1; | |
@while $i < $columns + 1 { | |
$colWidth: ($i/$columns)*100%; | |
$colWidth7: ($i/$columns)*98%; | |
& .large-#{$i}, & .small-#{$i} { | |
width: $colWidth; | |
*width: $colWidth7; //sets the width for ie7 |