Skip to content

Instantly share code, notes, and snippets.

View ableuler's full-sized avatar

Andreas Bleuler ableuler

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ableuler on github.
  • I am ableuler (https://keybase.io/ableuler) on keybase.
  • I have a public key ASCyDtWUs1SQVcweoBBY3xKb-T5fCrmHTlzud9Iorr5NyAo

To claim this, I am signing this object:

@ableuler
ableuler / locustfile.py
Created January 21, 2019 13:01
Simple locustfile for testing public routes on the Renku gateway.
from locust import HttpLocust, TaskSet, task
class UserBehavior(TaskSet):
@task(1)
def page_projects(self):
self.client.get('/api/projects',
headers={'x-requested-with': 'XMLHttpRequest'}
)
@ableuler
ableuler / index.html
Last active October 13, 2017 13:05
d3 force layout collapse nodes on double-click
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.links line {
stroke: #aaa;
}
.nodes circle {
stroke: #fff;
@ableuler
ableuler / graph-pieces.json
Created October 11, 2017 16:13
Experiment on triggering updates of a d3 force layout through a web socket connection
[
{
"operation": "add",
"nodes": [
{
"id": "1"
},
{
"id": "2"
},