Skip to content

Instantly share code, notes, and snippets.

View marcelrf's full-sized avatar

Marcel Ruiz Forns marcelrf

  • Wikimedia Foundation
  • Spain
View GitHub Profile
<!--
This is a sample application that shows how to use the Pageview API.
Read more here: https://wikitech.wikimedia.org/wiki/Analytics/AQS/Pageview_API
The most important code is inside the updateChart function, towards the end of the file.
The rest of the code is just html, css and input setup.
Disclaimer: This is just sample code, it has not been tested in all browsers/devices.
Distributed under the Unlicense: http://unlicense.org/
-->
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from collections import defaultdict
import argparse
import itertools
import random
import sys
BOOTSTRAP_SAMPLES = 100
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from phabricator import Phabricator
from datetime import datetime, timedelta
class Task(object):
def __init__(self, maniphest, transactions, project, default_column, base_url):