Instantly share code, notes, and snippets.

View webpack.config.coffee
###
Generate customized Decoy assets
###
# Deps
ExtractText = require 'extract-text-webpack-plugin'
autoprefixer = require 'autoprefixer'
webpack = require 'webpack'
# Autoprefixer config
View install.sh
yarn add babel-loader babel-core babel-preset-es2015 --dev
View gist:04709761d4accd60b894591a336e784d
# Install Bash 4 using homebrew
brew install bash
# Add the new shell to the list of legit shells
sudo bash -c "echo /usr/local/bin/bash >> /private/etc/shells"
# Change the shell for the user
chsh -s /usr/local/bin/bash
# Restart terminal.app (new window works too)
View Hostring-req.md

Required

Linux

  • public key based ssh access with agent forwarding
  • ability to chmod directories
  • access to crontab

PHP

  • version: >= 5.5.9
  • extensions:
View breadcrumbs.vue
<!--
Gloabal breadcrumbs componemt
-->
<template lang='jade'>
ol.layout-breadcrumbs
//- The interactive links
li(
View histories.php
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateHistoriesTable extends Migration {
/**
* Run the migrations.
*
View monkeys.coffee
num = 6
lyrics = while num -= 1
"#{num} little monkeys, jumping on the bed.
One fell out and bumped his head."
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Jade</title>
</head>
<body>
<h1>Jade - node template engine</h1>
<div id="container" class="col">
<p>You are amazing</p>
<p>
View style.css
.nav {
background: #ff0000;
}
.nav a {
color: #fff;
-webkit-transition: color 300ms;
-moz-transition: color 300ms;
-ms-transition: color 300ms;
transition: color 300ms;
}
View gist.php
<?php
Route::get('guidelines/{slug}/{page}', ['as' => 'guideline-page', function($slug, $page) {
$guideline = Guideline::findBySlugOrFail($slug);
$page = $guideline->guidelineBlocks()->where('slug', $page)->firstOrFail();
// previous pages
$previous = $guideline->guidelineBlocks()
->where('guideline_blocks.position', '<', $page->position)
->orderBy('guideline_blocks.position', 'desc')