Skip to content

Instantly share code, notes, and snippets.

Lane Goldberg builtbylane

Block or report user

Report or block builtbylane

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
@builtbylane
builtbylane / log all jQuery events
Last active Sep 20, 2017 — forked from kirkonrails/log all jQuery events
Log all jQuery events to console via redfine jquery trigger
View log all jQuery events
const oldJQueryEventTrigger = jQuery.event.trigger;
jQuery.event.trigger = ( event, data, elem, onlyHandlers ) => {
console.log( event, data, elem, onlyHandlers );
oldJQueryEventTrigger( event, data, elem, onlyHandlers );
};
@builtbylane
builtbylane / google_conversion_iframe_hider.scss
Created Feb 15, 2016
Hide google_conversion_frame iframe
View google_conversion_iframe_hider.scss
iframe[name='google_conversion_frame'] {
height: 0 !important;
width: 0 !important;
line-height: 0 !important;
font-size: 0 !important;
margin-top: -13px;
float: left;
}
@builtbylane
builtbylane / scss
Created Feb 15, 2016
_helpers.scss
View scss
/* Fool-proof @font-face */
/* Based on http://coding.smashingmagazine.com/2013/02/14/setting-weights-and-styles-at-font-face-declaration/ */
@mixin font-face($font-family, $file-path, $font-weight:'normal', $font-style:'normal') {
@font-face {
font-family: $font-family;
src: url('#{$file-path}.eot');
src: url('#{$file-path}.eot?#iefix') format('embedded-opentype'),
url('#{$file-path}.woff') format('woff'),
url('#{$file-path}.ttf') format('truetype'),
View gist:4a8041257a1fcda23399
### Keybase proof
I hereby claim:
* I am builtbylane on github.
* I am lane (https://keybase.io/lane) on keybase.
* I have a public key whose fingerprint is 87D5 28FE E476 A4D8 B685 B622 6B8B D109 5F67 07A3
To claim this, I am signing this object:
View gist:96de54e5991ef3c0f6eb
cd /usr/local/Library/Formula
brew remove node --force
brew versions node
git checkout 83988e4 /usr/local/Library/Formula/node.rb
brew install node
@builtbylane
builtbylane / gist:921b2df18b224ba27467
Last active Aug 29, 2015
watchifying multiple bundles with gulp
View gist:921b2df18b224ba27467
var gulp = require('gulp');
var filter = require('gulp-filter');
var source = require('vinyl-source-stream');
var gutil = require('gulp-util');
var path = require('path');
var colors = require('colors');
var createBundle = function(file) {
var method = (env.prebuild || env.stage || env.production) ? 'browserify' : 'watchify';
View gist:f20409c1d21fb9d9f853
_.mixin({
serialize: function (obj) {
var urlParams = _.map(obj, function (val, key) {
var value = (_.isObject(val)) ? JSON.stringify(val) : String(val);
return String(key) + '=' + value;
});
return urlParams.join('&');
}
});
View image_to_base64url.js
/**
* Converts an image to
* a base64 string.
*
* If you want to use the
* outputFormat or quality param
* I strongly recommend you read the docs
* @ mozilla for `canvas.toDataURL()`
*
* @param {String} url
@builtbylane
builtbylane / toolbox.scss
Created Jun 13, 2014
Lane's Sass Helpers
View toolbox.scss
// cover e-v-e-r-y-t-i-n-g
@mixin coverer {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
// center
@builtbylane
builtbylane / 0_reuse_code.js
Created Jun 9, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.