Skip to content

Instantly share code, notes, and snippets.

View d3.svg.circularbrush.js
d3.svg.circularbrush = function() {
var _extent = [0,Math.PI * 2];
var _circularbrushDispatch = d3.dispatch('brushstart', 'brushend', 'brush');
var _arc = d3.svg.arc().innerRadius(50).outerRadius(100);
var _brushData = [
{startAngle: _extent[0], endAngle: _extent[1], class: "extent"},
{startAngle: _extent[0] - .2, endAngle: _extent[0], class: "resize e"},
{startAngle: _extent[1], endAngle: _extent[1] + .2, class: "resize w"}
];
var _newBrushData = [];
View cnv_calls.txt
{ "views":
[
{
"chromInfoPath": "//s3.amazonaws.com/pkerp/data/hg19/chromInfo.txt",
"domain": [
0,
3000000000
],
"viewStyle": {
"float": "left",
@pkerpedjiev
pkerpedjiev / config.json
Created Nov 19, 2016
Various 1D tracks
View config.json
{
"views": [
{
"chromInfoPath": "//s3.amazonaws.com/pkerp/data/hg19/chromInfo.txt",
"domain": [
0,
3000000000
],
"viewStyle": {
"float": "left",
@pkerpedjiev
pkerpedjiev / block_trees.json
Last active Feb 13, 2017
Cambridge Tree Map
View block_trees.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pkerpedjiev
pkerpedjiev / index.html
Created Apr 19, 2017
D3 event filtering
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<div id="zoom-filtering-div" style="width: 400px; margin: auto">
</div>
<link href="style.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.3.0/d3.js"></script>
<script src="script.js"></script>
<script>
@pkerpedjiev
pkerpedjiev / .block
Last active May 3, 2017 — forked from mbostock/.block
SVG Geometric Zooming
View .block
license: gpl-3.0
@pkerpedjiev
pkerpedjiev / .block
Last active May 3, 2017 — forked from mbostock/.block
Canvas Geometric Zooming
View .block
license: gpl-3.0
View gist:2682a7e065663e53fa5e8116395b536f
(cenv3) ubuntu@ip-172-31-4-151:~/projects/higlass-server [benchmark-tiles|A+!?]$ fusermount -u media; goofys --uid 1000 --gid 1000 -o allow_other --file-mode 0666 -f --debug_s3 higlass:higlass.io/media media
fusermount: entry for /home/ubuntu/projects/higlass-server/media not found in /etc/mtab
2017/08/31 03:59:33.510121 s3.DEBUG HEAD https://s3.amazonaws.com/higlass = 200 [us-east-1]
2017/08/31 03:59:33.510178 s3.INFO anonymous bucket detected
2017/08/31 03:59:33.510529 s3.DEBUG DEBUG: Request s3/HeadObject Details:
---[ REQUEST POST-SIGN ]-----------------------------
HEAD /higlass/higlass.io/media/oqdx3xoh6lsot5v8t1ni41y28b3kz0s5 HTTP/1.1
Host: s3.amazonaws.com
User-Agent: aws-sdk-go/1.8.25 (go1.8.3; linux; amd64)
You can’t perform that action at this time.