Skip to content

Instantly share code, notes, and snippets.

View toddzebert's full-sized avatar
💭
coding, of course

Todd Zebert toddzebert

💭
coding, of course
View GitHub Profile
@attila
attila / jquery.prebind.js
Last active February 21, 2017 00:11 — forked from jonathanconway/jquery.prebind.js
Use $._data to get event data as $(this).data('events') has been removed from jQuery 1.8+
$.fn.preBind = function(type, data, fn) {
this.each(function() {
var $this = $(this);
$this.bind(type, data, fn);
var currentBindings = $._data($this[0], 'events');
if ($.isArray(currentBindings[type])) {
currentBindings[type].unshift(currentBindings[type].pop());
}
[
"$hit",
"$hit$",
"$hits",
"$hitted",
"$hitter",
"$hitting",
"3some",
"53x",
"60 nine",
@fractile81
fractile81 / toowide.js
Last active August 29, 2015 14:17
Select any visible elements wider than the body, or those that lie outside the right-side of the viewport. Requires jQuery, and meant for use in a browser console.
(function($){var w=$(window).width();$('body').find('*:visible').each(function(){var x=$(this).width();if(x>w||$(this).offset().left+x>w){console.log(this);}});})(jQuery);
@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active June 25, 2024 07:29
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@bokenlin
bokenlin / Sonnet Native App Requirements.md
Created August 3, 2019 05:26
Requirements document for Sonnet native app

Sonnet One Native App Feature Requirements

Last updated Jul 31, 2019

This document is a high-level description of the various features currently present in the Sonnet One front-end web application and Cordova-wrapped native app that will be used to define requirements and an API for the React Native app.

Any features that we weren't able to implement in the Web environment but we plan to implement in the native app are marked with (unimplemented).

Introduction