This file contains hidden or 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
""" | |
This code is based on https://github.com/DataDog/dd-trace-py/blob/3f7fbe920d8d8195e4028e522cbe43a974fe91f2/ddtrace/contrib/flask/middleware.py | |
Copyright (c) 2016, Datadog <[email protected]> | |
""" | |
import logging | |
from ddtrace import compat | |
from ddtrace.ext import http, errors, AppTypes | |
from ddtrace.propagation.http import HTTPPropagator |
This file contains hidden or 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
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 |
Effective software delivery teams with technical point of contact.
Software delivery team.
- 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.
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:
This file contains hidden or 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
# | |
# starting point | |
# | |
class DeployCLI | |
def run | |
template, args = ... | |
TemplateRenderer.new.render(template, args) | |
end | |
end |
This file contains hidden or 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/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 |
This file contains hidden or 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
(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) |
NewerOlder