This file contains hidden or 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 | |
class PagesController extends BaseController | |
{ | |
public function home() { | |
return View::make("pages.home"); | |
} | |
public function about() { | |
return View::make("pages.about"); |
This file contains hidden or 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 | |
// Home | |
Route::get('home', 'PagesController@home'); | |
// @about method always fires when viewing a page, no matter the page | |
Route::any('page' , [['about'], 'uses' => 'PagesController@about']); | |
Route::any('page' , [['vision'], 'uses' => 'PagesController@vision']); | |
Route::any('archive' , ['blog', 'uses' => 'BlogController@index']); |
This file contains hidden or 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
server { | |
listen 80; | |
# route www to non-www | |
server_name www.clientsite.com; | |
return 301 $scheme://clientsite.com$request_uri; | |
} | |
server { | |
listen 80 default_server; | |
server_name clientsite.com; |
This file contains hidden or 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
%vertically-centered-child | |
font-size: 0 | |
&:before | |
content: '' | |
display: inline-block | |
height: 100% | |
vertical-align: middle |
This file contains hidden or 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
Show hidden characters
[ | |
{ | |
"keys": ["control+alt+;"], "command": "align_tab", | |
"args" : { | |
"user_input" : ":/f" | |
} | |
}, | |
{ | |
"keys": ["control+alt+="], "command": "align_tab", | |
"args" : { |
This file contains hidden or 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 startSound = function() { | |
var handBell = new HandBell('C4') | |
handBell.initialize() | |
handBell.ding() | |
} |
This file contains hidden or 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
gzip on; | |
gzip_http_version 1.1; | |
gzip_vary on; | |
gzip_comp_level 6; | |
gzip_proxied any; | |
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/javascript text/xml application/xml application/rss+xml application/atom+xml application/rdf+xml; | |
gzip_buffers 128 4k; | |
gzip_disable "MSIE [1-6]\.(?!.*SV1)"; |
This file contains hidden or 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 SelectReplace = function( el, callback ) { | |
this.el = el; | |
this.callback = callback; | |
this.focusClassName = 'select-focus'; | |
this.valueClassName = 'select-value'; | |
this.wrapperClassName = 'select-wrapper'; | |
this.setup(); | |
this.bindEvents(); |
This file contains hidden or 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
# My changes | |
server { | |
listen [::]:80; | |
server_name domain.com parkeddomain.com; | |
rewrite ^ http://domain.com$request_uri? permanent; | |
} | |
# Forge's default | |
server { | |
listen 80; |
This file contains hidden or 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
<!-- OPTION A --> | |
<article class="featured-home"> | |
<figure class="featured-home__figure"> | |
<img src="#TODO" alt=""> | |
</figure> | |
<h4 class="featured-home__header">Poipu, Hawaii Sky</h4> | |
<footer class="featured-home__footer"> | |
<p>from $199/Night</p> | |
</footer> | |
</article> |