Skip to content

Instantly share code, notes, and snippets.

@pkerpedjiev
pkerpedjiev / SelectableForceDirectedGraph
Last active May 25, 2023 04:59
D3 Selectable Force-Directed Graph
.
@pkerpedjiev
pkerpedjiev / .d3v4-selectable-force-directed-graph
Last active March 2, 2022 11:10
D3v4 Selectable, Draggable, Zoomable Force Directed Graph
.
<snippet>
<content><![CDATA[
#!/usr/bin/python
import sys
import argparse
def main():
parser = argparse.ArgumentParser(description="""
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python3
import argparse
import logging
import os
import os.path as op
import resgen as rg
import sys
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pkerpedjiev
pkerpedjiev / .PixiJsGeometricZooming
Last active August 7, 2019 06:29
Pixi.js Geometric Zooming
license: gpl-3.0
@pkerpedjiev
pkerpedjiev / index.js
Created November 5, 2018 16:26
AWS Lambda Mandelbrot Tiles Code
function tileset_info() {
return {
'min_pos': [-2.5, -2.5],
'max_pos': [2.5, 2.5],
'bins_per_dimension': 256,
'max_width': 5,
'max_zoom': 50,
'mirror_tiles': 'false',
};
}
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>HiGlass</title>
<style type="text/css">
.canvasjs-chart-credit {
display:none;