Skip to content

Instantly share code, notes, and snippets.

View ja-k-e's full-sized avatar
🖼️
building another machine

jake ja-k-e

🖼️
building another machine
View GitHub Profile
@ja-k-e
ja-k-e / Moving SVG Gradients to defs.markdown
Created August 7, 2015 04:56
Moving SVG Gradients to defs

Moving SVG Gradients to defs

Simple paste-n-go to move Illustrator-generated gradients out of groups and into defs

A Pen by Jake Albaugh on CodePen.

License.

@ja-k-e
ja-k-e / Cleaning AI ids in SVG.markdown
Created August 7, 2015 04:57
Cleaning AI ids in SVG
@ja-k-e
ja-k-e / Cleaning Duplicate SVG Gradient stops and Moving to defs.markdown
Last active August 29, 2015 14:26
Cleaning Duplicate SVG Gradient stops and Moving to defs

Cleaning Duplicate SVG Gradient stops and Moving to defs

Simple paste-n-go to move Illustrator-generated gradients out of groups and into defs AND removes duplicate stop elements by using xlink.

A Pen by Jake Albaugh on CodePen.

License.

@ja-k-e
ja-k-e / CSS SVG Anim: Multi stroke-dashoffset with General stroke-width over time.markdown
Created August 7, 2015 04:57
CSS SVG Anim: Multi stroke-dashoffset with General stroke-width over time

CSS SVG Anim: Multi stroke-dashoffset with General stroke-width over time

Playing with multiple animations. One with delay, one without.

A Pen by Jake Albaugh on CodePen.

License.

@ja-k-e
ja-k-e / Ridiculous Password Generator.markdown
Last active August 29, 2015 14:26
Ridiculous Password Generator
@ja-k-e
ja-k-e / CSS Scroll Jacking Demo Using `:hover`.markdown
Last active September 11, 2015 21:12
CSS Scroll Jacking Demo Using `:hover`

CSS Scroll Jacking Demo Using :hover

A quick demo of how to use CSS to achieve a somewhat scroll-jacking experience.

Never do this.

A Pen by Jake Albaugh on CodePen.

License.

@ja-k-e
ja-k-e / CSS-Only Presentation Using `:target` and `accesskey`.markdown
Last active September 18, 2015 00:31
CSS-Only Presentation Using `:target` and `accesskey`

CSS-Only Presentation Using :target and accesskey

In one of those “inaccessible CSS solution” moods. If you’re asking “should I do this?” you probably shouldn’t.

Oddly slow in latest Chrome on PC, works fine in FF.

A Pen by Jake Albaugh on CodePen.

License.

@ja-k-e
ja-k-e / spacing.js
Last active September 18, 2015 19:01
Spacing Prefs
//
// greet paul
greeting("Paul");
//
// greeting method to take name and return a greeting
function greeting(subject) {
@ja-k-e
ja-k-e / 2015_css_dev_conf_jokes.md
Last active October 30, 2015 22:42
CSS Dev Conf Jokes
  • pants come off for bed
  • feet come off for bed
  • fuckin, fuckin, belly...bellyflop the octopus
  • letter opener katana

bfto

@ja-k-e
ja-k-e / application_controller.rb
Created November 3, 2015 00:20 — forked from scottwb/application_controller.rb
Get a list of all the filters on a given Rails 3 controller.
# Add these methods to your ApplicationController. Then, any controller
# that inherits from it will have these methods and can programmatically
# determine what filters it has set.
class ApplicationController < ActionController::Base
def self.filters(kind = nil)
all_filters = _process_action_callbacks
all_filters = all_filters.select{|f| f.kind == kind} if kind
all_filters.map(&:filter)
end