Skip to content

Instantly share code, notes, and snippets.

View tdeedlesATX's full-sized avatar

Tim Dietrich tdeedlesATX

View GitHub Profile
{
"prod": {
"canary": {
"rollbackOverrideWaitSeconds": 300,
"healthChecks": {
"delaySeconds": 1800,
"rollbar": {
"maximumErrorCount": 0
},
"tracker": {
@tdeedlesATX
tdeedlesATX / deploy-with-levels.json
Created September 15, 2023 16:24
deploy levels examples
{
"prod": {
"canary": {
"rollbackOverrideWaitSeconds": 300,
"healthChecks": {
"delaySeconds": 1800,
"rollbar": {
"maximumErrorCount": 0
},
"tracker": {
@tdeedlesATX
tdeedlesATX / Layout.tsx
Last active June 24, 2021 13:08
layout customization hooks
import React, {createContext, useContext, useReducer, useEffect} from 'react'
// presentation
import Layout from './Layout'
const LayoutContext = createContext();
/**
* limits possible customizations
*/
@tdeedlesATX
tdeedlesATX / multiline-ellipsis.less
Created July 7, 2017 20:32
Multi-line ellipsis .less function
/* @offset: should equal top + bottom padding for border-box situations */
/* @line-height: should be unitless */
.multiline-text-overflow-ellipsis(@font-size, @line-height, @max-lines, @max-width, @offset) {
display: block; /* Fallback for non-webkit */
display: -webkit-box;
max-width: @max-width;
height: @font-size*@line-height*@max-lines + @offset; /* Fallback for non-webkit */
font-size: @font-size;
line-height: @line-height;
-webkit-line-clamp: @max-lines;