Skip to content

Instantly share code, notes, and snippets.

@lmatteis
lmatteis / index.html
Last active February 7, 2020 07:44
Multiple pie charts, of different size, on map
<!DOCTYPE html>
<!-- saved from url=(0054)http://dc-js.github.io/dc.js/examples/stacked-bar.html -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div id="map"></div>
<div id="pie-chart"></div>
@lmatteis
lmatteis / index.html
Last active April 3, 2016 20:28
Reusable D3 chart
<!DOCTYPE html>
<meta charset="utf-8">
<style>
#example {
margin-left: 20px;
}
.line {
fill: none;
stroke: #000;
@lmatteis
lmatteis / .block
Last active April 3, 2016 17:28 — forked from mbostock/.block
General Update Pattern, I
license: gpl-3.0
{
"_id" : ObjectId("5635a78fe4b0ad99787fc18a"),
"endpointResult" : {
"endpoint" : {
"uri" : "http://dbpedia.org/sparql",
$stateProvider
.state(userRoutes.ABSTRACT_LOGIN, {
abstract: true,
template: '<ui-view/>'
})
.state(userRoutes.REGISTRATION, {
url: '/registration',
templateUrl: 'app/components/user/views/registration/registration.tpl.html'
})
@lmatteis
lmatteis / aa.js
Last active August 29, 2015 14:27
.state({
name: workflowsRoutes.TOPIC_DASHBOARD,
url: '/dashboard/:workflowID/topic/:topicID',
views: {
'': {
templateUrl: 'app/components/listening-area/views/topics-dashboard/topic-dashboard.tpl.html',
controller: function($stateParams) {
console.log('from ctrl', $stateParams)
}
"results": {
"LIMIT5": {
"query": "SELECT *\nWHERE{\n ?s ?p ?o .\n}\nLIMIT 5",
"cold": {
"frestout": 60000,
"solutions": 5,
"inittime": 1,
"exectime": 103,
"closetime": 103,
"Exception": null,
> db['ptasks_agg'].getIndexes()
[
{
"v" : 1,
"key" : {
"_id" : 1
},
"ns" : "sparqles.ptasks_agg",
"name" : "_id_"
},
> db['ptasks_agg'].getIndexes()
[
{
"v" : 1,
"key" : {
"_id" : 1
},
"ns" : "sparqles.ptasks_agg",
"name" : "_id_"
},
db['ptasks_agg'].find({},{"_id":0}).sort({"endpoint.datasets.0.label":1,"endpoint.uri":1}).explain()
Tue Jun 23 19:29:15.294 error: {
"$err" : "too much data for sort() with no index. add an index or specify a smaller limit",
"code" : 10128
} at src/mongo/shell/query.js:128