Skip to content

Instantly share code, notes, and snippets.

View popcorn245's full-sized avatar
👻

Bobby ^_^ popcorn245

👻
View GitHub Profile
@popcorn245
popcorn245 / filters.php
Last active August 29, 2015 14:13
Seo4Ajax Filter for Laravel 4
/*
|--------------------------------------------------------------------------
| Seo4Ajax Filter
|--------------------------------------------------------------------------
|
| The following filter is used to load html from SEO4AJAX.com and
| serve it specifically to search engine / social networking bots.
| EXAMPLE - Route::get('/', array('before' => 'seo4ajax', 'uses' => 'controller@index'));
|
*/
@popcorn245
popcorn245 / gulpfile.js
Last active March 12, 2016 23:30
My standard Ionic build process using Gulp 3. (REQUIRES: config.json)
/////////////////////////////////////
// REQUIRES
var bower = require('gulp-bower'),
browserSync = require('browser-sync').create(),
concat = require('gulp-concat'),
es = require('event-stream'),
fs = require('fs'),
gulp = require('gulp'),
intercept = require('gulp-intercept'),
jSass = require('gulp-json-sass'),
@popcorn245
popcorn245 / package.json
Last active August 29, 2015 14:23
My standard Ionic Node.js dependen
{
"name": "madnessplatform",
"version": "1.0.0",
"description": "MadnessPlatform: The application stack used to develop at Madness Labs",
"scripts": {
"postinstall": "gulp install"
},
"devDependencies": {
"browser-sync": "^2.8.1",
"event-stream": "^3.3.1",
@popcorn245
popcorn245 / bower.json
Last active August 29, 2015 14:24
My standard Ionic Bower file
{
"name": "MadnessBower",
"private": "true",
"devDependencies": {
"ionic": "driftyco/ionic-bower#master",
"font-awesome": "~4.2.0",
"animate.css": "~3.2.0",
"geoffgraham.animate.scss": "*",
"ionicons": "~2.0.1",
"ngCordova": "~0.1.12-alpha",
@popcorn245
popcorn245 / Dropdown.html
Created July 8, 2015 19:19
A pure CSS drop-down solution.
<style>
span p{
cursor:pointer;
}
span ul{
transition: all 0.5s ease;
list-style:none;
height:0px;
padding:0;
overflow:hidden;
@popcorn245
popcorn245 / head.html
Created July 9, 2015 04:45
Mobile Meta Tags
<!---->
<!-- ANDROID -->
<!---->
<!-- Hide Chrome Navigation Bar Android (When Added to Home Screen) -->
<meta name="mobile-web-app-capable" content="yes">
<!-- Change Chrome Navigation Bar Color (Android 5.1) -->
<meta name="theme-color" content="#db5945">
@popcorn245
popcorn245 / Damage_Codes.js
Last active August 29, 2015 14:26
AngularJS factory for Global Vehicle Damage Codes
app.factory('damage', function() {
var damage = {};
damage.areas = [
{
"code":"1",
"description":"Antenna / Antenna Base"
},
{
"code":"2",
@popcorn245
popcorn245 / router.js
Created July 28, 2015 19:18
Standard Ionic Router
app.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('login', {
url: '/login',
templateUrl: 'html/login.html',
controller: 'Login'
})
.state('tab', {
url: "/tab",
abstract: true,
@popcorn245
popcorn245 / Rest.ts
Last active September 23, 2015 21:28
AngularJS RESTful request service that makes Requests and Promises easier
/// <reference path="../../tsd/angularjs/angular.d.ts"/>
module AppName {
class RestService {
constructor(protected $http: any, protected $q: any, protected $httpParamSerializer) {
// On Load
}
get(rUrl, rParams) {
@popcorn245
popcorn245 / config.json
Last active August 29, 2015 14:27
Config file to be used with my standard Gulp build process.
{
"name": "MadnessPlatform",
"dir": "www/",
"db": {
"firebase": {
"host": "YOUR FIREBASE HERE"
}
},
"html": {
"dir": "html/",