@role
Blade Directive For Laravel Spark
Assumes you're using teams
Add this to the boot()
method of your AppServiceProvider
\Blade::directive('role', function($roles) {
$user = auth()->user();
{assign_variable:master_weblog_name="journal|linklog|sidebar"} | |
{exp:rss:feed weblog="{master_weblog_name}"} | |
<?xml version="1.0" encoding="{encoding}"?> | |
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/"> | |
<channel> | |
<title>{exp:xml_encode}My Comments Feed{/exp:xml_encode}</title> | |
<link>http://www.example.com/</link> | |
<description>Comments on my site</description> | |
<dc:language>{weblog_language}</dc:language> | |
<dc:creator>rss@example.com</dc:creator> |
/* | |
* Swipe 1.0 | |
* | |
* Brad Birdsall, Prime | |
* Copyright 2011, Licensed GPL & MIT | |
* | |
*/ | |
window.Swipe = function(element, options) { |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title><?php echo $page_title; ?></title> | |
</head> | |
<body> | |
<?php echo $content_for_layout; ?> |
#!/usr/bin/env ruby | |
errors = false | |
# Create a simple line break | |
puts "" | |
# Now let's get a list of the changed files that have been staged | |
changed_files = `git diff --staged --name-only HEAD`.split("\n") |
guard 'process', :name => 'shrink-images', :command => 'ruby resize-mobile-images.rb mobileretina' do | |
watch /^images\/mobileretina\/.+/ | |
end |
#!/bin/bash | |
for f in *.scss; do sass-convert $f ${f%scss}sass ; done | |
rm *.scss |
<?php | |
class DateFormat { | |
const DATE_SHORT = 'Y-m-d'; | |
const DATE_LONG = 'F j, Y'; | |
const DATETIME_SHORT = 'Y-m-d H:i'; | |
const DATETIME_LONG = 'F j, Y, g:i a'; |
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Application Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register all of the routes for an application. | |
| It's a breeze. Simply tell Laravel the URIs it should respond to | |
| and give it the Closure to execute when that URI is requested. |
@role
Blade Directive For Laravel SparkAssumes you're using teams
Add this to the boot()
method of your AppServiceProvider
\Blade::directive('role', function($roles) {
$user = auth()->user();
Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages