illuminate/html or laravelcollective/html
anahkiasen/underscore-php
laravelcollective/annotations
laravel/socialite
curl -SL http://wordpress.org/latest.tar.gz | tar --strip 1 -xzf - |
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
<?php | |
/** | |
* @Author Twaambo Haamucenje | |
* @Email [email protected] | |
* | |
* better phpunit and phpspec tests with linux desktop notifications using Robo PHP | |
* | |
* @see http://robo.li/ | |
*/ | |
class RoboFile extends \Robo\Tasks |
{ | |
"caret_extra_bottom": 4, | |
"caret_extra_top": 14, | |
"caret_extra_width": 1, | |
"caret_style": "phase", | |
"color_scheme": "Packages/User/Larapaste (SL).tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
".DS_Store", |
# commands to ignore | |
cmdignore=(htop tmux top vim) | |
# end and compare timer, notify-send if needed | |
function notifyosd-precmd() { | |
retval=$? | |
if [[ ${cmdignore[(r)$cmd_basename]} == $cmd_basename ]]; then | |
return | |
else | |
if [ ! -z "$cmd" ]; then |
<?php | |
// this file is meant for use with laravel 4 | |
// it can be placed in the root of the app directory | |
// and included from routes.php | |
// validate alphabetical chars & spaces only | |
Validator::extend('alpha_space', function($attr, $value) { | |
return preg_match('/^([a-zA-Z ])+$/i', $value); | |
}); |
<?php | |
// this assumes that you have a model that is maintaining timestamps using Eloquent | |
class User { | |
// So this is what tells laravel to update your timestamps for you | |
// That means you have the columns 'created_at' & 'updated_at' | |
public $timestamps = true; | |
(function( $ ){ | |
$.fn.flexvids = function() { | |
"use strict"; | |
return this.each(function(){ | |
var selectors = [ | |
"iframe[src*='player.vimeo.com']", | |
"iframe[src*='youtube.com']", | |
"iframe[src*='youtube-nocookie.com']", | |
"iframe[src*='kickstarter.com'][src*='video.html']", |
Event::listen('404', function() | |
{ | |
$username = URI::segment(1); | |
$user = User::where_username($username) | |
->where_type('account') | |
->first(); | |
if ($user != null) { | |
if ($user->username != '') { |