Skip to content

Instantly share code, notes, and snippets.

View joshbroton's full-sized avatar

Josh Broton joshbroton

View GitHub Profile
@joshbroton
joshbroton / gist:5eaac71e02d670afafd8
Created August 20, 2014 17:35
Media Queries in a Mixin
.element {
background: red;
@include medium() {
background: blue;
}
@include wide() {
background: red;
}
@joshbroton
joshbroton / app.js
Created July 22, 2014 22:25 — forked from jgoux/app.js
angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers'])
.run(function(DB) {
DB.init();
});
@joshbroton
joshbroton / keybase.md
Created March 25, 2014 14:25
keybase.md

Keybase proof

I hereby claim:

  • I am joshbroton on github.
  • I am joshbroton (https://keybase.io/joshbroton) on keybase.
  • I have a public key whose fingerprint is D62A BD7D 7F67 D9C7 87A9 3E62 1026 B187 003C CF44

To claim this, I am signing this object:

@joshbroton
joshbroton / URL Parameter By Name
Created November 17, 2013 15:16
Get URL Parameter by Name
function getParameterByName(name) {
var match = RegExp('[?&]' + name + '=([^&]*)')
.exec(window.location.search);
return match ?
decodeURIComponent(match[1].replace(/\+/g, ' '))
: null;
}
@joshbroton
joshbroton / Zombie Blink Tags
Last active December 21, 2015 06:39
Bring <blink> tags back to life with JavaScript
@joshbroton
joshbroton / Animate and Keyframe Sass Mixins
Created August 10, 2013 07:01
Sass mixins for cross-browser CSS animate and keyframe. @include animate() accepts multiple animations in a comma-separated list.
// animate with prefixes
// @include animation(ANIMATIONNAME LENGTH REPEAT INOUT,ANIMATIONNAME LENGTH REPEAT INOUT,ANIMATIONNAME LENGTH REPEAT INOUT);
@mixin animation($animate...) {
$max: length($animate);
$animations: '';
@for $i from 1 through $max {
$animations: #{$animations + nth($animate, $i)};
@if $i < $max {