<?php echo $this->getUrl('mypage'); ?>
<?php echo $this->getSkinUrl('images/button.gif'); ?>
setxkbmap -layout us -variant intl |
<?php namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Session\Store; | |
class SessionTimeout { | |
protected $session; | |
protected $timeout=900; | |
public function __construct(Store $session){ | |
$this->session=$session; | |
} |
Blade::extend(function($value) { | |
return preg_replace('/\@set(.+)/', '<?php ${1} ?>', $value); | |
}); | |
// Example | |
// @set $var = 'foo' |
$columns: 12 | |
$gutter: 0 | |
$max-width: 100% | |
=breakpoint($size) | |
@media only screen and ($size) | |
@content | |
*, *:after, *:before | |
margin: 0 |
/* Reset */ | |
*, *:before, *:after | |
margin: 0 | |
padding: 0 | |
outline: 0 | |
box-sizing: border-box | |
html, | |
body | |
height: 100% |
//- For use with https://github.com/CREEATION/laravel-elixir-jade | |
mixin blade() | |
='\r\n' | |
block | |
='\r\n' | |
mixin phpblock() | |
!='\r\n<?php ' |
#!/usr/bin/env bash | |
# # # # # # # # # # | |
# Developer Stuff # | |
# # # # # # # # # # | |
# Install Homebrew | |
echo "Installing Homebrew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
# Convert an animated video to gif | |
# Works best for videos with low color palettes like Dribbble shots | |
# | |
# @param $1 - video file name like `animation.mov` | |
# @param @optional $2 - resize parameter as widthxheight like `400x300` | |
# | |
# Example: vidtogif animation.mov 400x300 | |
# Requirements: ffmpeg and gifsicle. Can be downloaded via homebrew | |
# | |
# http://chrismessina.me/b/13913393/mov-to-gif |
server { | |
listen 80; | |
server_name domain.com www.domain.com; | |
root /var/www/domain.com; | |
location / { | |
index index.html index.php; | |
## If missing pass the URI to Magento's front handler | |
try_files $uri $uri/ @handler; |