Skip to content

Instantly share code, notes, and snippets.

Thomas Jaggi backflip

View GitHub Profile
@backflip
backflip / bookmarklet.js
Last active Apr 27, 2018
Bookmarklet für TG Hütten Monatsprogramm
View bookmarklet.js
;(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 Sep 17, 2017
Grunt: Resolve sprockets-like directives in files and concatenate
View Gruntfile.js
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 Sep 17, 2017
Grunt: Resolve sprockets-like directives in files and concatenate
View Gruntfile.js
var fs = require('fs')
var path = require('path')
module.exports = function (grunt) {
grunt.initConfig({
concat: {
dist: {
src: (function (file) {
var fileCache = []
View trackspace-export.js
(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 Apr 18, 2017
Keyboard navigation for Sketch Measure
View bookmarklet.js
(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 Mar 2, 2018
PR checklist
View PR.txt
### Summary
*What is happening here?*
*Link to preview*
@backflip
backflip / gist:3e49a046e67541356af6
Created May 8, 2015
inheritance.css.map (after autoprefixer)
View gist:3e49a046e67541356af6
{ 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
inheritance.css (after autoprefixer)
View gist:3ddea63443f328e09779
body {
background: pink; }
footer {
background: red; }
.error, .badError {
border: #f00;
background: #fdd; }
View gist:db4b657fc58fd361f44b
{ version: 3,
sources:
[ 'includes/_cats.scss',
'includes/_dogs.sass',
'inheritance.scss' ],
names: [],
mappings: 'AAGA,IAAI,CAAC;EACH,UAAU,EAAE,IAAK,GADb;;ACAN,MAAM,CAAC;EACL,UAAU,EAAE,GAAI,GADV;;ACAR,MAAM,EAAE,SAAS,CAAV;EACL,MAAM,EAAE,IAAK;EACb,UAAU,EAAE,IAAK,GAFX;;AAKF,MAAM,UAAU,EAAE,UAAU,SAAS,CAA1B;EACf,SAAS,EAAE,KAAM;EACjB,WAAW,EAAE,IAAK,GAFF;;AAKlB,SAAS,CAAC;EAER,YAAY,EAAE,GAAI,GAFT',
file: 'inheritance.scss',
sourcesContent:
[ '$blue: #3bbfce;\n$margin: 16px;\n\nbody {\n background: pink;\n}\n',
View gist:8cab915096c487933614
body {
background: pink; }
footer {
background: red; }
.error, .badError {
border: #f00;
background: #fdd; }
You can’t perform that action at this time.