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
weotch / webpack.config.coffee
Created Jun 13, 2018
Example Decoy custom js/css webpack build config
View webpack.config.coffee
###
Generate customized Decoy assets
###
# Deps
ExtractText = require 'extract-text-webpack-plugin'
autoprefixer = require 'autoprefixer'
webpack = require 'webpack'
# Autoprefixer config
@weotch
weotch / install.sh
Created Dec 6, 2016
Import es6 modules to coffeescript and vue-loader
View install.sh
yarn add babel-loader babel-core babel-preset-es2015 --dev
@weotch
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 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.
*
@weotch
weotch / monkeys.coffee
Created Apr 18, 2016
Coffeescript demo
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>
@weotch
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
<?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.