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
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
# bash generate random 32 character alphanumeric string (upper and lowercase) and | |
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
# bash generate random 32 character alphanumeric string (lowercase only) | |
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |
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
.list-group-horizontal .list-group-item { | |
display: inline-block; | |
} | |
.list-group-horizontal .list-group-item { | |
margin-bottom: 0; | |
margin-left:-4px; | |
margin-right: 0; | |
} | |
.list-group-horizontal .list-group-item:first-child { | |
border-top-right-radius: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
<?php | |
/* app/validators.php */ | |
Validator::extend('alpha_spaces', function($attribute, $value) | |
{ | |
return preg_match('/^[\pL\s]+$/u', $value); | |
}); | |
/* |
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 gulp = require('gulp'); | |
var phpspec = require('gulp-phpspec'); | |
var run = require('gulp-run'); | |
var notify = require('gulp-notify'); | |
gulp.task('test', function() { | |
gulp.src('spec/**/*.php') | |
.pipe(run('clear')) | |
.pipe(phpspec('', { notify: true })) | |
.on('error', notify.onError({ |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<section> | |
<input id="theData" type="text" placeholder="Enter some text to save" /> | |
</section> | |
<section> | |
<h1>Local Storage</h1> | |
<article> | |
<label for="localValue">Local Storage: </label> |
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
<input name="frameworks" list="frameworks" /> | |
<datalist id="frameworks"> | |
<option value="MooTools"> | |
<option value="Moobile"> | |
<option value="Dojo Toolkit"> | |
<option value="jQuery"> | |
<option value="YUI"> | |
</datalist> |
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
<video width="640" height="360" controls> | |
<source src="__VIDEO__.MP4" type="video/mp4" /> | |
<source src="__VIDEO__.OGV" type="video/ogg" /> | |
<object width="640" height="360" type="application/x-shockwave-flash" data="__FLASH__.SWF"> | |
<param name="movie" value="__FLASH__.SWF" /> | |
<param name="flashvars" value="controlbar=over&image=__POSTER__.JPG&file=__VIDEO__.MP4" /> | |
<img src="__VIDEO__.JPG" width="640" height="360" alt="__TITLE__" | |
title="No video playback capabilities, please download the video below" /> | |
</object> | |
</video> |
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
<object type="application/x-shockwave-flash" | |
data="your-flash-file.swf" | |
width="0" height="0"> | |
<param name="movie" value="your-flash-file.swf" /> | |
<param name="quality" value="high"/> | |
</object> |
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
<input type="text" title="email" required pattern="[^@]+@[^@]+\.[a-zA-Z]{2,6}" /> |
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
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"> |