Skip to content

Instantly share code, notes, and snippets.

@tfe
tfe / JTSSwiftTweener.swift
Last active June 22, 2021 03:36 — forked from JoshuaSullivan/JTSSwiftTweener.swift
A tweening library to animate arbitrary numerical values.
//
// JTSSwiftTweener.swift
// JTSSwiftTweener
//
// Created by Joshua Sullivan on 12/10/16.
// Copyright © 2016 Josh Sullivan. All rights reserved.
//
import UIKit
@tfe
tfe / fluid_gmail.js
Last active December 16, 2015 02:59 — forked from kirbysayshi/fluid_gmail.js
Semicolons and style.
window.fluid.dockBadge = '';
setTimeout(updateDockBadge, 1000);
setTimeout(updateDockBadge, 3000);
setInterval(updateDockBadge, 5000);
function updateDockBadge() {
var navigation = document.querySelector('[role=navigation]');
var doc = navigation.contentDocument || navigation.ownerDocument;
@tfe
tfe / jquery.truncatelines.js
Created July 21, 2011 01:05 — forked from cscheng/jquery.truncatelines.js
A simple jQuery plugin to truncate a piece of text to a predefined amount of lines. It assumes pixel values of both the container and its line-height. Useful when you have multiple boxes with text in your design that require equal heights.
// https://gist.github.com/1096291
;(function ($) {
$.fn.truncateLines = function(options) {
options = $.extend($.fn.truncateLines.defaults, options);
return this.each(function(index, container) {
container = $(container);
var containerLineHeight = Math.ceil(parseFloat(container.css('line-height')));
#!/bin/sh
#
# Will append the current Lighthouse ticket number to the commit message automatically
# when you use the ticket###-ticket-name branch naming convention (e.g. 206-fix-widget).
#
# Drop into .git/hooks/commit-msg
# chmod +x .git/hooks/commit-msg
exec < /dev/tty