Skip to content

Instantly share code, notes, and snippets.

View kgust's full-sized avatar

Kevin Gustavson kgust

  • Vanderbilt University Medical Center
  • Nashville, Tennessee USA
View GitHub Profile
@michalsen
michalsen / gist:8625e0736d1c9fb4a564
Last active August 29, 2015 14:05
#FVCP Sep2014
/**
* Notes and various links mentioned in
* FVCP and FVDrupalCamp 2014
* on web page speed, testing and loading
*/
Developer Tools in browser.
Load page under Network
Can save load meta data as HAR file (rt click / save as HAR with content)
@gvinter
gvinter / gist:3814470
Created October 1, 2012 21:15
Simple CSS3 Spinner
<style type="text/css" media="screen">
.bar1 {
-moz-transform:rotate(0deg) translate(0, -40px);
-webkit-transform:rotate(0deg) translate(0, -40px);opacity:0.12;
}
.bar2 {
-moz-transform:rotate(45deg) translate(0, -40px);
-webkit-transform:rotate(45deg) translate(0, -40px);opacity:0.25;
}
.bar3 {
@soundanalogous
soundanalogous / jquery.ba-tinypubsub.js
Created October 1, 2012 21:15 — forked from cowboy/HEY-YOU.md
jQuery Tiny Pub/Sub: A really, really, REALLY tiny pub/sub implementation for jQuery.
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011
* http://benalman.com/
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */
(function($) {
var o = $({});
$.subscribe = function() {
o.on.apply(o, arguments);
@BrettBukowski
BrettBukowski / gist:3814745
Created October 1, 2012 22:03
Quick reflection for PHP classes
/**
* Provides quick reflection, usually so that the caller can access private
* methods and properies in a single pass.
*
* If called with a single String classname, then the \ReflectionClass of
* that class is returned.
* Accepts any number of additional Strings that are names of properties or
* methods to make accessible and return. Methods should be prefixed with 'method:'.
* The return value is an array containing the mapped reflection class and the properties / methods.
*
@jnejunior
jnejunior / css
Created October 1, 2012 22:46
CSS reset Eric Meyer
html, body, div, span, applet, object, iframe, table, caption,
tbody, tfoot, thead, tr, th, td, del, dfn, em, font, img, ins,
kbd, q, s, samp, small, strike, strong, sub, sup, tt, var,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr,
acronym, address, big, cite, code, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend {
vertical-align: baseline;
font-family: inherit;
font-weight: inherit;
font-style: inherit;
@rudelyunethical
rudelyunethical / test.feature
Created October 1, 2012 23:04
Ruby On Rails: Initial feature @cucumber
Feature: Testing Configuration
In order to have a base for my new application
As a developer
I want to test the configuration settings for this application
Scenario: Test Home Page
Given I am on the home page
Then I should see "home"
@rudelyunethical
rudelyunethical / test_steps.rb
Created October 1, 2012 23:07
Ruby On Rails: Initial testing steps @cucumber
Given /^I am on the home page$/ do
visit "/"
end
Then /^I should see "([^"]*)"$/ do |text|
page.should have_content text
end
@wa0x6e
wa0x6e / build.xml
Last active April 23, 2018 20:03
Faster php lint target for jenkins php
<!--
More faster : lint only modified files
--------------------------------------
We create a new target to retrieve a list of modified files
If there is modified files, execute the lint target, else skip
with the `if="modifiedFiles"` option.
The list of modified files is stored in ${files.modified}, one file per line.
@philsturgeon
philsturgeon / 0-intro.md
Last active June 7, 2018 09:34
PSR-2 v CodeSniffer PSR-2

This is a list of issues or discrepencies between the wording or intention of PSR-2 itself and the CodeSniffer PSR-2 ruleset.

Add suggestions in the comments or tweet me (@philsturgeon) if you have more inconsistencies to report.

@jeresig
jeresig / .vimrc
Created May 4, 2011 16:46
VIM Config
au BufRead,BufNewFile jquery.*.js set ft=javascript syntax=jquery
set nocompatible
set autoindent
set tabstop=2
set showmatch
set vb t_vb=
set ruler
set nohls
set incsearch
syntax on