Skip to content

Instantly share code, notes, and snippets.

Ken Collins metaskills

Block or report user

Report or block metaskills

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
metaskills / demo.rb
Last active Nov 28, 2018
Using IMGIX to Personalize Knolled Images
View demo.rb
require 'open-uri'
require 'bundler/inline'
gemfile true do
source ''
gem 'imgix'
gem 'launchy'
metaskills / gist:3170386
Created Jul 24, 2012
Mapping A Sass List To A Comma Separated Selector
View gist:3170386
// Using this code below, I was able to itterate over a list of
// color names and append them to an empty list. I was then able
// to use the selectors from there.
$selectors: ();
@each $value in $my-colors-names {
$selector: unquote(".box.#{$value} .box-header");
$selectors: append($selectors, $selector, comma);
#{$selectors} { @extend .color-white; }
View Gemfile
gem 'jekyll', '~> 2.0.0.alpha'
gem 'nokogiri'
gem 'redcarpet'
gem 'rouge'
metaskills / passenger.rb
Created Sep 18, 2015
Rails Multi-Database Best Practices Roundup - config/initializers/passenger.rb -
View passenger.rb
if defined?(PhusionPassenger)
PhusionPassenger.on_event(:starting_worker_process) do |forked|
if forked
MysqlBase.establish_connection MysqlBase.configurations['mysql'][Rails.env]
metaskills / lp.js
Last active Jan 17, 2018
LivePerson/Engage Turbolinks Hacking
View lp.js
// Assuming you put the LP init code into a function called window.lpTagCustomInit
document.addEventListener('turbolinks:before-cache', function(){
document.addEventListener('turbolinks:load', function(){
delete window.liveperson;
delete window.lpMTagConfig;
delete window.lpTag;
metaskills /
Created Jan 10, 2018
Turbolinks & jQuery ReConstructor Pattern
class Toolbar
constructor: ->
document.addEventListener 'turbolinks:before-cache', @turboBeforeCache
reConstructor: ->
registerWaypoint: ->
metaskills /
Created Jan 10, 2018
Turbolinks With Enquire JS
metaskills /
Created Jan 10, 2018
Turbolinks Trustpilot Integration
metaskills / ready.js
Created Jan 10, 2018
When Are Things Ready?
View ready.js
document.addEventListener('DOMContentLoaded', function(){
document.addEventListener('turbolinks:load', function(){
console.log('jQuery Document Ready');
metaskills / foo.rb
Created Jan 10, 2018
Basic HTML Page
View foo.rb
<!DOCTYPE html>
<title>My Page</title>
<script src="..."></script>
<h1>Hello World!</h1>
<script src="..."></script>
You can’t perform that action at this time.