Skip to content

Instantly share code, notes, and snippets.

@allaniftrue
allaniftrue / gist:7164913
Created October 26, 2013 03:14
A reGist of git ignore template. All credits to this page: https://help.github.com/articles/ignoring-files
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@allaniftrue
allaniftrue / functions.php
Last active November 13, 2017 12:23
Compression for Wordpress with ENV
<?php
/*
* dependencies : https://github.com/paparts/WordPress-Config-Bootstrap
*/
class WP_HTML_Compression {
// Settings
protected $compress_css = true;
protected $compress_js = true;
protected $info_comment = true;
protected $remove_comments = true;
@allaniftrue
allaniftrue / filters.php
Last active March 16, 2019 19:00
Laravel Minify HTML response
<?php
/*
* An improvised Gist from
* https://gist.github.com/zmsaunders/5619519
* https://gist.github.com/garagesocial/6059962
*/
App::after(function($request, $response)
{
if(App::Environment() != 'local')
@allaniftrue
allaniftrue / index.html
Last active December 5, 2017 00:55
A gist for sticky menu with smooth scrolling
<!--
Repository: https://github.com/paparts/jQuery/tree/master/stick-menu
-->
<!DOCTYPE html>
<html lang="">
<head>
<title>Title Page</title>
<meta charset="UTF-8">
<meta name=description content="">
@allaniftrue
allaniftrue / sublime.conf
Last active August 29, 2015 14:03
Sublime Config
// Settings in here override those in "Default/Preferences.sublime-settings", and
// are overridden in turn by file type specific settings.
{
"bold_folder_labels": true,
"caret_extra_width": 1,
"caret_style": "phase",
"close_windows_when_empty": false,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"copy_with_empty_selection": false,
"default_line_ending": "unix",
@allaniftrue
allaniftrue / etable
Created July 3, 2014 01:57
Sublime Snippet for Tables In Email Coding
<snippet>
<content><![CDATA[
<table border="0" cellspacing="0" cellpadding="0" width="${1:100%}" align="${2:center}">
<tr>
<td>
$3
</td>
</tr>
</table>
]]></content>
@allaniftrue
allaniftrue / hack.css
Created July 23, 2014 02:57
CSS Hack - Troubleshooting emails
/*
HTML EMAIL CSS HACK FROM
author: https://litmus.com/blog/email-design-a-community-of-hacks
*/
* { background-color: rgba(255,0,0,.2); }
* * { background-color: rgba(0,255,0,.2); }
* * * { background-color: rgba(0,0,255,.2); }
* * * * { background-color: rgba(255,0,255,.2); }
* * * * * { background-color: rgba(0,255,255,.2); }
<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
* Generated with https://github.com/barryvdh/laravel-ide-helper
* Updated for Laravel 4.2.1 (2014-06-01)
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
*/
namespace {
@allaniftrue
allaniftrue / hello.blade.php
Last active December 20, 2016 09:21
Using Omnipay Paypal With Laravel Views
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Laravel - Omnipay - Paypal Example</title>
</head>
<body>
{{ Form::open([ 'url' => 'pay_via_paypal', 'method' => 'post'  ]) }}
<p>
<img src="{{ $productImage }}" alt="Aurvana Platinum">
@allaniftrue
allaniftrue / PaymentController.php
Last active January 29, 2018 23:11
Using Omnipay Paypal With Laravel Controller
<?php
use Omnipay\Omnipay;
class PaymentController extends Controller
{
private $data;
public function getIndex()
{