Skip to content

Instantly share code, notes, and snippets.


Wade Urry iWader

View GitHub Profile
View Gruntfile.js
'use strict';
module.exports = function(grunt) {
less: {
dist: {
files: {
'public/assets/css/app.min.css': [
iWader / Markup.html
Last active Aug 29, 2015
Bootstrap Radio Button Replacement
View Markup.html
<div class="btn-toolbar form-replacement" data-toggle-name="field_name">
<button type="button" value="true" class="btn btn-default">Yes</button>
<button type="button" value="false" class="btn btn-default">No</button>
<input name="field_name" type="hidden">
iWader / ajax_dyn_key
Last active Dec 29, 2015
Sending ajax with dynamic key name
View ajax_dyn_key
$(document).ready(function() {
function ajax_save(field, value)
type: 'POST',
url: '{{ URL::to('/test') }}',
data: field + '=' + value
}).done(function(data) {
console.log('Response: ' + data);
}).fail(function(data) {
View index.php
/* Redacted */
| Register The Auto Loader
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it

Keybase proof

I hereby claim:

  • I am iwader on github.
  • I am iwader ( on keybase.
  • I have a public key ASAbhTskQcNMKWKTeliaGL89p-T0IcR6CL-SeG57jSPYggo

To claim this, I am signing this object:

php -r "copy('', 'composer-setup.php');"
ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');")
>&2 echo 'ERROR: Invalid installer signature'
rm composer-setup.php