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
<a href="#" data-model="Table" data-action="add_row" data-param="">Add row</a> | |
<a href="#" data-model="Table" data-action="delete_row" data-param='{"id": 1}'>Add row</a> | |
<script> | |
var Table = { | |
add_row: function (self, params) { | |
console.error('adding_row'); | |
}, |
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
javascript:(function () { | |
var ip_address = prompt('IP Address'); | |
var livereload = document.createElement('script'); | |
livereload.src = "http://" + ip_address + ":35729/livereload.js?ext=Chrome&extver=2.0.9"; | |
document.getElementsByTagName('head')[0].appendChild(livereload); | |
})(); |
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); |
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
$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
{ | |
"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
#!/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
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
{ | |
"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", |