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
/* | |
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request | |
- Or, request confirmation in the process - | |
<a href="posts/2" data-method="delete" data-confirm="Are you sure?"> | |
*/ | |
(function() { |
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 | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Http\Requests; | |
use App\Http\Controllers\Controller; | |
use App\Client; |
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
$scopes: ( | |
margin: mar, | |
padding: pad | |
); | |
$locations: ( | |
top: t, | |
bottom: b, | |
left: l, | |
right: r, |
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
$spacer-xs: .25em; | |
$spacer-sm: .5em; | |
$spacer-md: 1em; | |
$spacer-lg: 1.5em; | |
$spacer-xl: 2em; | |
// Padding Top | |
.pad-t-xs { | |
padding-top: $spacer-xs; | |
} |
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
$spacer-xs: .25em; | |
$spacer-sm: .5em; | |
$spacer-md: 1em; | |
$spacer-lg: 1.5em; | |
$spacer-xl: 2em; | |
// Margin Top | |
.mar-t-xs { | |
margin-top: $spacer-xs; | |
} |
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 | |
namespace App; | |
use Router; | |
use Route; | |
class ConfigRouteBinder { | |
function bind(){ |
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'), | |
postcss = require('gulp-postcss'), | |
sourcemaps = require('gulp-sourcemaps'), | |
autoprefixer = require('autoprefixer'), | |
customMedia = require("postcss-custom-media"), | |
minmax = require('postcss-media-minmax'), | |
atImport = require("postcss-import"), | |
precss = require("precss"), | |
postcss_for = require('postcss-for'), | |
lost = require('lost'); |
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
@custom-media --small-up (width >= 34em); | |
@custom-media --medium-up (width >= 48em); | |
@custom-media --large-up (width >= 62em); | |
@custom-media --extra-large-up (width >= 75em); | |
@lost gutter 30px; | |
.container { | |
width: 100%; | |
} |
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 | |
/** | |
* Set's a 'do-not-track' cookie that'll expire in 10 years, used in conjunction with Google Tag Manager | |
* | |
* @return void | |
* @author Kevin Ruscoe | |
*/ | |
function setDoNotTrackCookie(){ | |
setcookie('do-not-track', 'do-not-track', strtotime( '+10 years' )); |