Skip to content

Instantly share code, notes, and snippets.

View tardyp's full-sized avatar

Pierre Tardy tardyp

  • Renault Software Labs
View GitHub Profile
@tardyp
tardyp / README.md
Last active December 24, 2015 00:09 — forked from mbostock/.block

This examples demonstrates how to use D3's brush component to implement focus + context zooming. Click and drag in the small chart below to pan or zoom.

@tardyp
tardyp / gist:e9ba58896b77dfa428d4
Created June 9, 2015 12:11
new api for buildsumary directive
diff --git a/www/base/src/app/common/directives/buildsummary/buildsummary.directive.coffee b/www/base/src/app/common/directives/buildsummary/buildsummary.directive.coffee
index c91373c..d26d66a 100644
--- a/www/base/src/app/common/directives/buildsummary/buildsummary.directive.coffee
+++ b/www/base/src/app/common/directives/buildsummary/buildsummary.directive.coffee
@@ -11,6 +11,8 @@ class Buildsummary extends Directive('common')
class _buildsummary extends Controller('common')
constructor: ($scope, buildbotService, resultsService, $urlMatcherFactory, $location) ->
+ data = new buildbotService()
+
import os
from twisted.application import service
from buildbot.master import BuildMaster
from buildslave.bot import BuildSlave
# setup master
basedir = os.path.abspath(os.path.dirname(__file__))
configfile = 'master.cfg'

Keybase proof

I hereby claim:

  • I am tardyp on github.
  • I am tardyp (https://keybase.io/tardyp) on keybase.
  • I have a public key whose fingerprint is 390E B159 056E D56F 66AB 1092 AECD 456B 4D25 31FC

To claim this, I am signing this object:

@tardyp
tardyp / add fip.patch
Last active October 10, 2016 09:12
hyper buildbot tutorial
diff --git a/simple/docker-compose.yml b/simple/docker-compose.yml
index 3eb1bc1..7fd206e 100644
--- a/simple/docker-compose.yml
+++ b/simple/docker-compose.yml
@@ -25,6 +25,7 @@ services:
worker:
image: "buildbot/buildbot-worker:master"
+ fip: 209.177.90.213
environment:
@tardyp
tardyp / http_connect_proxy.py
Created August 20, 2021 13:23
a simple CONNECT http proxy
# SPDX-License-Identifier: MIT
import asyncio
import socket
async def pipe(reader, writer):
try:
while not reader.at_eof():
writer.write(await reader.read(2048))
@tardyp
tardyp / bonus_sorted.py
Last active September 11, 2021 16:45
a buildbot builders sorter which can prioritize builders that take longer
from datetime import datetime, timedelta
from dateutil.tz import tzutc
from twisted.internet import defer
# this stores bonuses for builders, which takes in account longer build time
builder_bonuses = {
'bldr1': timedelta(hours=1)