Skip to content

Instantly share code, notes, and snippets.

import Helper from "./Helper";
import HeaderStateHandler from "./HeaderStateHandler";
const defaults = {
toggler: "#js-share-toggler",
share: "#js-header-share",
title: "title",
facebook: "#js-share-facebook",
twitter: "#js-share-twitter",
linkedin: "#js-share-linkedin",

Keybase proof

I hereby claim:

  • I am backflip on github.
  • I am thomasjaggi (https://keybase.io/thomasjaggi) on keybase.
  • I have a public key ASDEyw1Vx5b2LER2DHbP3w_ErtZm-reb8BiNRRpKoPpYDwo

To claim this, I am signing this object:

@backflip
backflip / bookmarklet.js
Last active April 27, 2018 06:41
Bookmarklet für TG Hütten Monatsprogramm
;(function() {
var options = {
container: '.j-hgrid',
column: '.cc-m-hgrid-column',
cell: '.j-text',
minWidth: '100px'
};
function setHeights(rows) {
rows.forEach(function(row) {
@backflip
backflip / Gruntfile.js
Created September 17, 2017 17:25
Grunt: Resolve sprockets-like directives in files and concatenate
var fs = require('fs')
var path = require('path')
module.exports = function (grunt) {
grunt.initConfig({
concat: {
dist: {
src: (function (file) {
var fileCache = []
@backflip
backflip / Gruntfile.js
Created September 17, 2017 17:25
Grunt: Resolve sprockets-like directives in files and concatenate
var fs = require('fs')
var path = require('path')
module.exports = function (grunt) {
grunt.initConfig({
concat: {
dist: {
src: (function (file) {
var fileCache = []
(function() {
let total = 0,
issues = [].slice.call(document.querySelectorAll('.ghx-issue-compact .ghx-inner')).map((node) => {
let text = node.innerText,
time = text.match(/ \[(.*)h\]/) || '',
group = text.match(/^(.*?) - (.*?)/) || '',
feedback = text.match(/^\[(Needs feedback)\] /) || '';
if (time) {
text = text.replace(time[0], '');
@backflip
backflip / bookmarklet.js
Last active April 18, 2017 17:17
Keyboard navigation for Sketch Measure
(function() {
const aside = document.querySelector('aside');
function getCurrent() {
return document.querySelector('.artboard.active') || document.querySelector('.artboard');
}
function showSidebar() {
aside.classList.add('on');
}
@backflip
backflip / PR.txt
Last active March 2, 2018 11:30
PR checklist
### Summary
*What is happening here?*
*Link to preview*
@backflip
backflip / gist:3e49a046e67541356af6
Created May 8, 2015 19:19
inheritance.css.map (after autoprefixer)
{ version: 3,
sources: [ 'inheritance.css' ],
names: [],
mappings: 'AAAA;EACE,iBAAiB,EAAE;;AAErB;EACE,gBAAgB,EAAE;;AAEpB;EACE,aAAa;EACb,iBAAiB,EAAE;;AAErB;EACE,iBAAiB;EACjB,kBAAkB,EAAE;;AAEtB;EACE,kBAAkB,EAAE',
file: 'inheritance.css',
sourcesContent: [ 'body {\n background: pink; }\n\nfooter {\n background: red; }\n\n.error, .badError {\n border: #f00;\n background: #fdd; }\n\n.error.intrusion, .intrusion.badError {\n font-size: 1.3em;\n font-weight: bold; }\n\n.badError {\n border-width: 3px; }\n' ],
sourceRoot: '/source/' }
@backflip
backflip / gist:3ddea63443f328e09779
Created May 8, 2015 19:19
inheritance.css (after autoprefixer)
body {
background: pink; }
footer {
background: red; }
.error, .badError {
border: #f00;
background: #fdd; }