Skip to content

Instantly share code, notes, and snippets.

View patforna's full-sized avatar

Patric Fornasier patforna

View GitHub Profile
@patforna
patforna / middleware.py
Created December 20, 2017 10:01
ddtrace flask middleware fix
"""
This code is based on https://github.com/DataDog/dd-trace-py/blob/3f7fbe920d8d8195e4028e522cbe43a974fe91f2/ddtrace/contrib/flask/middleware.py
Copyright (c) 2016, Datadog <info@datadoghq.com>
"""
import logging
from ddtrace import compat
from ddtrace.ext import http, errors, AppTypes
from ddtrace.propagation.http import HTTPPropagator
@patforna
patforna / formula.rb
Created March 25, 2017 07:46
Simian Homebrew Formula
class Simian < Formula
desc "Simian (Similarity Analyser) identifies duplication in a number of programming languages and even plain text files."
homepage "http://www.harukizaemon.com/simian"
url "http://www.harukizaemon.com/simian/simian-2.4.0.tar.gz"
sha256 "6d41d8cac8a3e6b8e219d0eafea4b59ac2b641c1b6e72070ed3969738160f38d"
def install
libexec.install "bin/simian-2.4.0.jar"
(bin+'simian').write <<-EOS.undent
#!/bin/sh

Resiroop Domains

Shop

shop.dev.resiroop.ch
shop.staging.resiroop.ch
shop.live.resiroop.ch | www.resiroop.ch | resiroop.ch

Tools

Tech Lead (Role)

Purpose

Effective software delivery teams with technical point of contact.

Domains

Software delivery team.

Accountabilities

  • Delivering business value through early and continuous delivery of valuable software - ideally guided by business metrics.
  • Collaborating closely with other functions (e.g. product, ux, ops, qa, architecture, etc.) towards common business goals.

Business Analyst (Role)

Purpose

Effective software delivery teams. Everyone on the team understands (and can question) what work the customer/PO expects and why.

Domains

Software delivery team.

Accountabilities

  • Discovering and eliciting customer needs through interaction with stakeholders.

Keybase proof

I hereby claim:

  • I am patforna on github.
  • I am patforna (https://keybase.io/patforna) on keybase.
  • I have a public key whose fingerprint is 5A60 EA90 21C5 0C18 059F 7F4B 2BF2 F336 B8AE 9C12

To claim this, I am signing this object:

#
# starting point
#
class DeployCLI
def run
template, args = ...
TemplateRenderer.new.render(template, args)
end
end
#!/usr/bin/env bash
grep -rh '@mixin' web/public/css | cut -d' ' -f2 | egrep -o '^[a-z\-]+' > /tmp/mixins
for mixin in `cat /tmp/mixins`; do
echo --- $mixin
grep --exclude mixin.names -ri "@include $mixin" web/public/css | grep -v '//'
done
(ns cracking.p_02_05
(:require [clojure.test :refer :all]))
(defn different? [[a b]] (not (= a b)))
(defn first-elem [[a b]] a)
; This is a solution using "Floyd's cycle-finding algorithm"
(defn detect-loop [coll]
(let [tortoise (drop 1 coll)