version: '2'
services:
dns-gen:
container_name: dns-gen
image: jderusse/dns-gen
ports:
#!/usr/bin/env node | |
const { execSync, spawn } = require('child_process'); | |
const chalk = require('chalk'); | |
function hasChangesInRepo() { | |
return execSync('git status --porcelain').toString().length > 0; | |
} | |
if (hasChangesInRepo()) { |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/gestures.dart'; | |
class PanAndScalingGestureRecognizer extends StatefulWidget { | |
final Widget child; | |
final void Function(Offset initialPoint) onPanStart; | |
final void Function(Offset initialPoint, Offset delta) onPanUpdate; | |
final void Function() onPanEnd; | |
final void Function(Offset initialFocusPoint) onScalingStart; |
class AppActivity: AppCompatActivity() { | |
companion object { | |
fun newInstance(context: Context) = Intent(context, AppActivity::class.java) | |
} | |
internal val navigationFragment = NavigationFragment() | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
val rootFrameLayout = FrameLayout(this).apply { |
class AppActivity: AppCompatActivity() { | |
companion object { | |
fun newInstance(context: Context) = Intent(context, AppActivity::class.java) | |
} | |
internal val navigationFragment = NavigationFragment() | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
val rootFrameLayout = FrameLayout(this).apply { |
class AppActivity: AppCompatActivity() { | |
companion object { | |
fun newInstance(context: Context) = Intent(context, AppActivity::class.java) | |
} | |
internal val navigationFragment = NavigationFragment() | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
val rootFrameLayout = FrameLayout(this).apply { |
// ==UserScript== | |
// @name Copy jira task name | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://kafoodle.atlassian.net/browse/* | |
// @grant none | |
// ==/UserScript== |
#!/usr/bin/env bash | |
set -e | |
if [ $# -ne 3 ]; then | |
echo 'mkroundcorners - script for making round corners for png-images.' | |
echo 'Usage: mkroundcorners source.png 40 target.png' | |
exit 0 | |
fi | |
SRC=$1 | |
R=$2 |
extension Array { | |
func sortedBy<T: Comparable>(_ cb: (Element) -> T) -> [Element] { | |
return self.sorted(by: { (l: Element, r: Element) -> Bool in | |
return cb(l) < cb(r) | |
}) | |
} | |
func sortedByDescending<T: Comparable>(_ cb: (Element) -> T) -> [Element] { | |
return self.sorted(by: { (l: Element, r: Element) -> Bool in | |
return cb(l) > cb(r) |
#!/bin/bash | |
# brew install gnu-sed | |
# brew install html-xml-utils | |
if [ $# -eq 0 ]; then | |
echo "Mac Benchmark CLI interface" | |
echo "Usage: bench.sh MODE" | |
echo " 's' mode for single core" | |
echo " 'm' mode for multi core" | |
exit 0 |