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
https://flatuicolors.com/ | |
TURQUOISE: #1abc9cp | |
EMERALD #2ecc71 | |
PETER RIVER #3498db | |
AMETHYST #9b59b6 | |
WET ASPHALT #34495e | |
GREEN SEA #16a085 | |
NEPHRITIS #27ae60 | |
BELIZE HOLE #2980b9 |
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
<a data-panel-to="#content" class="btn btn-default">Content</a> | |
<p id="content"> | |
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corporis culpa dignissimos eveniet ex exercitationem explicabo fugiat impedit neque nisi numquam. Consequuntur distinctio facere mollitia nihil non quas totam. Necessitatibus, quo? | |
</p> |
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 | |
use Illuminate\Contracts\Console\Kernel; | |
use App\YouApp\Console\Kernel as AppKernel; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
// boot ... | |
// register |
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 | |
if (!function_exists('getSql')) { | |
/** | |
* Returns SQL with values in it | |
* | |
* @param $model | |
* @return mixed | |
*/ | |
function getSql($model) |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- |
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 | |
if (!function_exists('array_get')) { | |
/** | |
* Get value from array by key | |
* | |
* @param array $array | |
* @param string $key | |
* @param mixed $default | |
* @return mixed |
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 | |
/** | |
* Dump helper. Functions to dump variables to the screen, in a nicley formatted manner. | |
* @author Joost van Veen | |
* @version 1.0 | |
*/ | |
if (!function_exists('dump')) { | |
function dump ($var, $label = 'Dump', $echo = TRUE) | |
{ | |
// Store dump in variable |
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
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
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
#!/bin/bash - | |
WWW=/var/www/ | |
LARAVEL_PATH=${1} | |
DOMAIN=$(echo "$LARAVEL_PATH" | cut -d "/" -f1) | |
MYSQL_USER=dev | |
MYSQL_DB=$(echo $DOMAIN | sed 's/\./_/g') | |
project_root(){ | |
eval cd "${LARAVEL_PATH}" |
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
# a2enmod vhost_alias | |
<VirtualHost *:80> | |
ServerName .ponich.com | |
RewriteEngine On | |
RewriteCond %{HTTPS} !on | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} | |
</VirtualHost> | |
# SSL with wildcard | |
<IfModule mod_ssl.c> |
OlderNewer