Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
# Based on swarmplot code from seaborn - slightly adapted to take either a PathCollection or a list of PathCollections, | |
# thus enabling a hybrid swarm of scatter plots using different markers. | |
# Source: https://github.com/mwaskom/seaborn/blob/f1852b584c3edb750cfc0ee7c6cf6b34453ca5c9/seaborn/categorical.py | |
# License and copyright: https://github.com/mwaskom/seaborn/blob/master/LICENSE | |
# Comments from the source removed for brevity | |
def swarmify(ax, swarm, width, **kws): | |
def could_overlap(xy_i, swarm, d): | |
_, y_i = xy_i |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
import re, requests | |
from urllib.request import urlopen | |
from lxml import etree | |
def committee_available(comm): | |
url = 'https://anr.fr/fr/detail/call/appel-a-projets-generique-2020/' | |
headers = {'Content-Type': 'text/html',} | |
response = requests.get(url, headers=headers) | |
html = response.text | |
htmlparser = etree.HTMLParser() |
This file contains 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 python3 | |
import os | |
print("Enter output filename:") | |
name = input() | |
print("Paste cURL command string:") | |
cmd = input() | |
headers = [] |
This file contains 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
import requests | |
import pandas as pd | |
def get_wikipedia_data(country): | |
s = requests.Session() | |
url = "https://en.wikipedia.org/w/api.php" | |
p = { | |
"action": "query", |
This file contains 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/python | |
from __future__ import division | |
from __future__ import print_function | |
import csv | |
import argparse | |
import numpy | |
import numpy.linalg | |
import numpy.random |
This file contains 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
<?php | |
/* | |
* Copyright 2013 Radoslaw Kamil Ejsmont <radoslaw@ejsmont.net> | |
* | |
* Original code by mailaneel is available at | |
* https://gist.github.com/mailaneel/1363377 | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. |