This file contains hidden or 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
$references = array( | |
'SELECT' => 'yellow', | |
'deleted' => 'red', | |
'DELETE' => 'red', | |
'UPDATE' => 'blue', | |
'INSERT' => 'green', | |
); | |
$excludes = array('SHOW FULL COLUMNS', 'Aro', 'Aco', 'Permission', 'SHOW TABLES', 'SELECT CHARACTER_SET_NAME', 'SELECT COUNT'); | |
$print = true; |
This file contains hidden or 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
$.fn.equalize = function(options) | |
{ | |
var self = this; | |
function equalize () { | |
var elements = $(self); | |
// calculate the max height | |
var maxHeight = Math.max.apply(null, elements.map(function () { | |
return $(this).height(); |
This file contains hidden or 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
{ | |
"require": { | |
"slim/slim": "2.*", | |
"slim/views": "0.1.*", | |
"twig/twig": "1.15.*", | |
"monolog/monolog": "1.7.*", | |
"resty/resty": "0.6.0", | |
"vlucas/valitron": "dev-master", | |
"j4mie/idiorm": "v1.4.1", | |
"j4mie/paris": "v1.4.2", |
This file contains hidden or 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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
shell: { | |
runTest: { | |
command: 'phpunit' | |
}, | |
clear: { |
This file contains hidden or 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
#!/bin/bash | |
# JPEG | |
jpegoptim --all-progressive $1 --dest=$DESTINATION --max=75 | |
pngquant --speed 1 *.png |
This file contains hidden or 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
{ | |
"name": "", | |
"require": { | |
"slim/slim": "2.*", | |
"slim/views": "0.1.*", | |
"twig/twig": "1.15.*", | |
"monolog/monolog": "1.7.*", | |
"resty/resty": "0.6.0", | |
"vlucas/valitron": "dev-master", |
This file contains hidden or 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
$column-name = col; | |
$column-count = 32; | |
$column-width = 2rem; | |
for $index in 1..$column-count { | |
.{$column-name}-{$index} { | |
width: ($index * $column-width) | |
} | |
} |
This file contains hidden or 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
/* | |
|-------------------------------------------------------------------------- | |
| List: Prefix | |
|-------------------------------------------------------------------------- | |
| | |
| Add a prefix to all the list items | |
| | |
| @param list $list | |
| @param string $string | |
| @return list |
This file contains hidden or 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
public class Test | |
{ | |
public static void main (String[] args) | |
{ | |
int currentBalance = 50000; | |
int withdrawalAmount = 5000; | |
boolean cashIsDivisibleByOneHundredBills = (withdrawalAmount % 100 == 0); |