Skip to content

Instantly share code, notes, and snippets.

View nissicreative's full-sized avatar

Mike Folsom nissicreative

View GitHub Profile
@nissicreative
nissicreative / IOSPushNotify.php
Created December 11, 2015 20:05
Class provided by Guarang
<?php
//////////////////////////////////////////////////////////
// This Class will be use to send push notification to iPhone device.
//////////////////////////////////////////////////////////
class IOSPushNotify
{
private $apnPath;
private $authId;
@nissicreative
nissicreative / Preferences.sublime-settings
Last active March 12, 2017 04:14
Cobalt 2 Theme Settings
{
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 3,
"caret_style": "phase",
"color_scheme": "Packages/Theme - Cobalt2/cobalt2.tmTheme",
"font_size": 15,
"highlight_line": true,
"highlight_modified_tabs": true,
@nissicreative
nissicreative / Admin.php
Created August 31, 2016 13:56
Laravel Admin Middleware
<?php
namespace App\Http\Middleware;
use Auth;
use Closure;
class Admin
{
/**
* Handle an incoming request.
@nissicreative
nissicreative / helpers.php
Last active September 12, 2017 14:15
Laravel Helper Functions
<?php
use Carbon\Carbon;
use Nissi\Proxies\Date;
use Nissi\Proxies\Text;
use Nissi\Proxies\Format;
use Nissi\Proxies\Number;
use Nissi\Proxies\Inflect;
use Nissi\Proxies\Geography;
use Nissi\ValueObjects\Gravatar;
@nissicreative
nissicreative / index.blade.php
Last active August 31, 2016 15:28
Admin Resource Index
@extends('admin.layouts.master')
@section('page_meta')
<title>{{ page_title('{Resources}') }}</title>
@endsection
@section('content')
<a href="{{ route('admin.{items}.create') }}" class="btn btn-primary pull-right"><i class="fa fa-plus"></i>&nbsp;&nbsp;Add {Resource}</a>
@nissicreative
nissicreative / BlogController.php
Last active August 31, 2016 18:29
Boilerplate for Laravel Admin Controller
<?php
namespace App\Http\Controllers\Admin;
use App\BlogPost;
use Carbon\Carbon;
use Laracasts\Flash\Flash;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Redirect;
@nissicreative
nissicreative / social.blade.php
Created August 31, 2016 22:35
Laravel Social Icon Markup
<div class="social">
<ul>
<li><a href="{{ config('contact.facebook') }}" class="facebook"><i class="fa fa-fw fa-facebook"></i></a></li>
<li><a href="{{ config('contact.twitter') }}" class="twitter"><i class="fa fa-fw fa-twitter"></i></a></li>
<li><a href="{{ config('contact.linkedin') }}" class="twitter"><i class="fa fa-fw fa-linkedin"></i></a></li>
<li><a href="{{ config('contact.youtube') }}" class="twitter"><i class="fa fa-fw fa-youtube"></i></a></li>
</ul>
</div>
@nissicreative
nissicreative / social.less
Created August 31, 2016 22:36
Social Icons LESS
.social {
margin: 0;
padding: 0;
ul {
margin: 0;
padding: 5px;
li {
margin: 5px;
list-style: none outside none;
display: inline-block;
@nissicreative
nissicreative / ignore_regexes.json
Created September 1, 2016 16:19
Sublime SFTP Laravel Ignore Regexes
"ignore_regexes": [
"\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json",
"sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
"\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini",
"\\.env", "vendor/", "node_modules/", "tests/",
"storage/app/public/",
"storage/framework/cache/", "storage/framework/sessions/", "storage/framework/views/",
"storage/logs/"
],
@nissicreative
nissicreative / gulpfile.js
Last active June 16, 2017 19:20
Laravel Gulp Boilerplate
const elixir = require('laravel-elixir');
elixir(function (mix) {
const bowerPath = './vendor/bower_components';
// Stylesheets
// -------------------------------------------------- //
// Compiles to public/css/app.css
mix.less('app.less', 'public/css', null, {