Skip to content

Instantly share code, notes, and snippets.

View hanspagel's full-sized avatar
👀

Hans Pagel hanspagel

👀
View GitHub Profile
@hanspagel
hanspagel / SassMeister-input.scss
Created March 16, 2015 10:50
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
// Breakpoints
$tiny: 320;
$small: 480;
$medium: 800;
@hanspagel
hanspagel / search-replace-wordpress.md
Last active August 29, 2015 14:17
Search & Replace URLs in WordPress Database

Go to WordPress Installation (e. g. wordpress/)

cd wordpress/

Download WP Command Line Interface

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar

Dry-Run

'preVars' =>
array (
0 =>
array (
'GETvar' => 'L',
'valueMap' =>
array (
'en' => '1',
'tr' => '2',
'es' => '3',
function test() {
alert('Klugscheißer');
}
@hanspagel
hanspagel / revealing-module-pattern-with-instances.js
Last active February 11, 2016 15:29
revealing module pattern with instances
/* ==========================================================================
Module
========================================================================== */
var Module = (function() {
var options = {
$this: false,
};
@hanspagel
hanspagel / SassMeister-input.scss
Last active February 11, 2016 15:31
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
$rem-baseline: 16px !default;
// Function: Pixel to REM
@function rem($values...) {
@hanspagel
hanspagel / .bash_profile
Created August 18, 2016 08:53
some aliases for the bash
alias web='cd ~/Documents/Websites'
alias apps='cd ~/Documents/Apps'
alias okgrunt='git pull && sublime . && grunt'
alias ok='git pull && sublime .'
alias okgo='git pull && sublime . && vagrant up'
alias okgogrunt='git pull && sublime . && vagrant up && npm install && grunt'
alias okupdate='ncu -u && composer update'
alias subl='sublime .'
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider
{
protected $namespace = 'App\Http\Controllers';
<?php
namespace App\Providers;
use Laravel\Passport\Passport;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
// …
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
public function up()