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 set = [ | |
'http://lorempixel.com/200/200/food/1', 'http://lorempixel.com/200/200/food/2', 'http://lorempixel.com/200/200/food/3', 'http://lorempixel.com/200/200/food/4', 'http://lorempixel.com/200/200/food/5' | |
]; | |
function done() { | |
var div = document.createElement('div'); | |
div.innerHTML = "<p>Images Loaded</p>"; | |
document.body.appendChild(div); | |
document.body.style.background = 'white'; | |
} | |
var counter = 0; // start at 0 |
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
#!/usr/bin/env bash | |
# start at 1 | |
COUNTER=1 | |
for FILE in *.jpg | |
do | |
echo "file - $FILE" | |
if [[ "$COUNTER" -lt "10" ]]; then | |
NUM=0 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
$colors: $red, $green, $dark, $blue, $orange; | |
$color-names: red, green, dark, blue, orange; | |
// count of $colors starts at 1 | |
@for $i from 1 through 5 { | |
$color: nth($colors, $i); | |
$name: nth($color-names, $i); | |
.btn.#{$name}-bg:hover, .btn.#{$name}-bg:active { | |
background-color: darken($color, 10%); | |
} | |
} |
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 $randomcolor = '#' . strtoupper(dechex(rand(256, 16777215))); |
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 echo pathinfo($_SERVER['PHP_SELF'])['filename'] ?> |