This is the API link: http://hedonometer.org/api/v1/happiness/?format=json×eries__title=en_all&date__gte=2019-01-01&limit=1000
You can also query the rt, no_rt versions:
from django.utils.html import smart_urlquote | |
from tastypie import fields | |
class SmartUrlField(fields.ApiField): | |
""" | |
A field for urls in plain text. | |
""" | |
dehydrated_type = 'string' | |
help_text = 'a field for urls in plain text.' |
This is the API link: http://hedonometer.org/api/v1/happiness/?format=json×eries__title=en_all&date__gte=2019-01-01&limit=1000
You can also query the rt, no_rt versions:
# watch multiple jobs, can handle any number of upstreams | |
virtualenv-3.5 pyenv | |
pyenv/bin/pip install requests | |
JENKINS_URI=... | |
echo "import json | |
import requests | |
import time |
<?xml version='1.0' encoding='utf-8'?> | |
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd"> | |
<key attr.name="name" attr.type="string" for="graph" id="d1" /> | |
<key attr.name="club" attr.type="string" for="node" id="d0" /> | |
<graph edgedefault="undirected"> | |
<node id="0"> | |
<data key="d0">Mr. Hi</data> | |
</node> | |
<node id="1"> | |
<data key="d0">Mr. Hi</data> |
license: mit |
drop table if exists mortality.sample_exposure_and_events; | |
create table mortality.sample_exposure_and_events ( policy_id int, dob_date date, start_date date, end_date date, event_date date, covariate_1 varchar(1), covariate_2 varchar(1) ); | |
insert into mortality.sample_exposure_and_events ( policy_id, dob_date, start_date, end_date, event_date, covariate_1, covariate_2 ) ( select 1, '1989-07-25', '2010-01-01', '2012-12-31', NULL, 'M', '5'); | |
insert into mortality.sample_exposure_and_events ( policy_id, dob_date, start_date, end_date, event_date, covariate_1, covariate_2 ) ( select 2, '1990-08-26', '2012-01-01', '2013-12-31', NULL, 'M', '3'); | |
insert into mortality.sample_exposure_and_events ( policy_id, dob_date, start_date, end_date, event_date, covariate_1, covariate_2 ) ( select 3, '1991-08-19', '2014-01-01', '2016-06-30', '2016-06-30', 'F', '3'); | |
select * from mortality.sample_exposure_and_events order by policy_id; | |
create table mortality.sample_study_years ( study_year int ); | |
insert into mortality.sample_ |
{ | |
"config": {"view": {"width": 400, "height": 300}}, | |
"layer": [ | |
{ | |
"data": {"name": "data-c0a7223f03f36353e594f8f681eb9f0c"}, | |
"mark": {"type": "line", "point": true}, | |
"encoding": { | |
"x": {"type": "quantitative", "field": "size", "title": "Chunk Size (rows)"}, | |
"y": {"type": "quantitative", "field": "totaltime", "title": "Runtime (s)"} | |
} |
license: mit |