index.html:
<html lang="en">
<head>
</head>
<body>
...
<script data-main="/js/config" src="/js/lib/require.min.js"></script>
function convertJsonDate( $string ) { | |
if ( preg_match('#^/Date\((-?\d+)([+-]\d+)?\)/$#', $string, $matches) ) { | |
$ds = intval( $matches[1] ) / 1000; | |
$dm = intval( $matches[1] ) % 1000; | |
$tz = '+000'; | |
if ( isset($matches[2]) ) { | |
$tz = $matches[2]; | |
} |
index.html:
<html lang="en">
<head>
</head>
<body>
...
<script data-main="/js/config" src="/js/lib/require.min.js"></script>
/* | |
Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013 | |
*/ | |
.select2-container { | |
margin: 0 0 1rem 0; | |
position: relative; | |
vertical-align: middle; | |
font-family: inherit; | |
-webkit-appearance: none !important; | |
font-size: 0.875rem; |
$data = $YOUR_QR_STUFF->getImage(); | |
ob_start(); | |
imagepng($data); | |
$image_data = ob_get_contents(); | |
ob_end_clean(); | |
store_stuff_in_redis($key, $data); |
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# |
Just a collection of links to all the slide decks used at Laracon 2015 in Louisville, KY.
Leveraging Laravel: Launching Side Projects Quickly With Laravel
When It All Hits the Fan
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.0</real> | |
<key>Green Component</key> | |
<real>0.0</real> |
<?php | |
namespace App\Validators; | |
use Illuminate\Contracts\Validation\Validator; | |
class ListOfValidator | |
{ | |
public function validate($attribute, $value, $parameters, Validator $validator) |
I hereby claim:
To claim this, I am signing this object:
<?php | |
if ($argc < 3) { | |
echo <<< EOB | |
USAGE: {$argv[0]} myRating opp1rating [opp2rating...] | |
EOB; | |
exit(1); | |
} |