- Firefox programmatically focus contenteditable https://jsfiddle.net/c933yzwu/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.airfocus.common.logging | |
import com.fasterxml.jackson.core.JsonGenerator | |
import net.logstash.logback.argument.StructuredArgument | |
import net.logstash.logback.marker.LogstashMarker | |
import spray.json._ | |
case class JsonAppendingMarker(members: (String, JsValue)*) extends LogstashMarker("JSON_MARKER") with StructuredArgument { | |
override def writeTo(generator: JsonGenerator): Unit = { | |
def recursion(current: JsValue): Unit = current match { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
convert favicon.png -bordercolor white -border 0 \ | |
\( -clone 0 -resize 16x16 \) \ | |
\( -clone 0 -resize 32x32 \) \ | |
\( -clone 0 -resize 48x48 \) \ | |
\( -clone 0 -resize 57x57 \) \ | |
\( -clone 0 -resize 64x64 \) \ | |
\( -clone 0 -resize 72x72 \) \ | |
\( -clone 0 -resize 110x110 \) \ | |
\( -clone 0 -resize 114x114 \) \ | |
\( -clone 0 -resize 120x120 \) \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git diff master..HEAD --numstat | grep 'src/' | awk '{a+=$1; d+=$2} END {print a, d}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import subprocess | |
import os | |
import re | |
import sys | |
import itertools | |
sprint_regex = '^sprint\-(\d+)?$' | |
semver_regex = '^v(\d+)\.(\d+)\.(\d+)(\-(.*))?$' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import subprocess | |
import os | |
import re | |
import sys | |
import time | |
import datetime | |
def log_info(msg): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path("test") { | |
extract(ctx => ctx.request.entity.dataBytes) { body => | |
complete { | |
val processing = body | |
.map { chunk => | |
//println(s"Received ${chunk.length} bytes") | |
chunk | |
} | |
.map { chunk => | |
// simulate slow processing speed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The MIT License (MIT) | |
// Copyright (c) 2015 Christian Hoffmeister | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bluebird.prototype.flatThen = function (promise, transform) { | |
return new Bluebird(function (resolve, reject) { | |
promise | |
.then(function (value1) { | |
transform(value1) | |
.then(function (value2) { | |
resolve(value2); | |
}) | |
.catch(function (err2) { | |
reject(err2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var argv = require('yargs').argv, | |
bower = require('main-bower-files'), | |
coffee = require('gulp-coffee'), | |
concat = require('gulp-concat'), | |
connect = require('connect'), | |
filter = require('gulp-filter'), | |
gif = require('gulp-if'), | |
gulp = require('gulp'), | |
gutil = require('gulp-util'), | |
jade = require('gulp-jade'), |