Skip to content

Instantly share code, notes, and snippets.

Robert Reinhard weotch

Block or report user

Report or block weotch

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
weotch /
Created Jun 13, 2018
Example Decoy custom js/css webpack build config
Generate customized Decoy assets
# Deps
ExtractText = require 'extract-text-webpack-plugin'
autoprefixer = require 'autoprefixer'
webpack = require 'webpack'
# Autoprefixer config
weotch /
Created Dec 6, 2016
Import es6 modules to coffeescript and vue-loader
yarn add babel-loader babel-core babel-preset-es2015 --dev
weotch / gist:04709761d4accd60b894591a336e784d
Last active Nov 21, 2016 — forked from samnang/gist:1759336
Install Bash version 4 on MacOS X
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 (new window works too)



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


  • version: >= 5.5.9
  • extensions:
View breadcrumbs.vue
Gloabal breadcrumbs componemt
<template lang='jade'>
//- The interactive links
View histories.php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateHistoriesTable extends Migration {
* Run the migrations.
weotch /
Created Apr 18, 2016
Coffeescript demo
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">
<h1>Jade - node template engine</h1>
<div id="container" class="col">
<p>You are amazing</p>
weotch / style.css
Created Apr 18, 2016
Stylus example
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
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')
You can’t perform that action at this time.