Skip to content

Instantly share code, notes, and snippets.

View mcgwier's full-sized avatar

Jason Mcgwier mcgwier

View GitHub Profile
@mcgwier
mcgwier / WP_Bag_of_Tricks.txt
Created February 16, 2012 17:53 — forked from boogah/WP_Bag_of_Tricks.txt
Things I've learned by being a WordPress nerd.
WP Bag of Tricks
1. Helpful Scripts/Plugins:
Hacks:
http://wordpress.org/extend/plugins/tac/
http://wordpress.org/extend/plugins/exploit-scanner/ (Can be extremely resource intensive.)
http://wordpress.org/extend/plugins/wp-malwatch/
@mcgwier
mcgwier / README.md
Last active August 29, 2015 14:15 — forked from hofmannsven/README.md
@mcgwier
mcgwier / 0_reuse_code.js
Last active August 29, 2015 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mcgwier
mcgwier / javascript_resources.md
Last active August 29, 2015 14:15 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@mcgwier
mcgwier / css_resources.md
Last active August 29, 2015 14:15 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@mcgwier
mcgwier / readme
Created March 5, 2015 17:05
Readme
# README Boilerplate
A template of README best practices to make your README simple to understand and easy to use.
## Installation
Download to your project directory, add `README.md`, and commit:
```sh
curl -LO http://git.io/Xy0Chg
@mcgwier
mcgwier / LICENSE
Created March 5, 2015 17:06
LICENSE (Public)
Free Public License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
@mcgwier
mcgwier / LICENSE
Created March 5, 2015 17:08
LICENSE (MIT)
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
@mcgwier
mcgwier / viewport.html
Created March 5, 2015 21:18
Prevent zoom on iOS
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
@mcgwier
mcgwier / formselect.php
Created March 12, 2015 15:15
Laravel: Easy dropdowns with Eloquent's Lists method
// Many of you may know this already, but for those who don't this is really handy for building dropdowns
// Suppose you want to show a categories dropdown whose information is pulled from an Eloquent model
// You can use the query builder's "lists" method (available for Eloquent as any query builder method) which
// returns an associative array you can pass to the Form::select method
$categories = Category::lists('title', 'id');
// note that the parameters you pass to lists correspond to the columns for the value and id, respectively
// in this case, "title" and "id"