Skip to content

Instantly share code, notes, and snippets.

View bumbeishvili's full-sized avatar
🏠
Working from home

David Bumbeishvili bumbeishvili

🏠
Working from home
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[
{
"country": "Afghanistan",
"continent": "Asia"
},
{
"country": "Albania",
"continent": "Europe"
},
{
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bumbeishvili
bumbeishvili / file.md
Created February 25, 2020 05:35
not working on filtes

Test

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[{"nodeId":"1","parentNodeId":null,"expanded":false,"width":342,"height":146,"backgroundColorHex":"#0FB6D0","template":"<div style='height: 75px; width: 260px; background-color:white'>\n <pre style='color:black; padding-top:3px; font-family:arial'>\n Node Info\n General Node Information\n This node is so good,\n check this node. really good \n </pre>\n</div>","directSubordinates":0,"totalSubordinates":0,"border":{"colorHex":"#0F8C79","width":1,"radius":5},"nodeIcon":{"icon":"http://www.iconsdb.com/icons/preview/white/data-protection-xxl.png","size":30},"nodeInfo":{"name":"Root Node","minorInfo":"Foo bar aaa cc"},"connector":{"lineColorHex":"#DCBDCF","lineWidth":5}},{"nodeId":"2","parentNodeId":"1","expanded":true,"width":342,"height":146,"backgroundColorHex":"#0FB6D0","template":"","directSubordinates":0,"totalSubordinates":0,"border":{"colorHex":"#FFFF00","width":5,"radius":5},"nodeIcon":{"icon":"http://www.iconsdb.com/icons/preview/white/data-protection-xxl.png","size":30},"nodeInfo":{"name":"Node","minorI
function downloadImage(isSvg) {
// Retrieve svg node
const svgNode = attrs.svg.node();
if (isSvg) {
let source = serializeString(svgNode);
//add xml declaration
source = '<?xml version="1.0" standalone="no"?>\r\n' + source;
//convert svg source to URI data scheme.
var url = "data:image/svg+xml;charset=utf-8," + encodeURIComponent(source);
@bumbeishvili
bumbeishvili / airlines.xml
Created November 8, 2019 11:48 — forked from upphiminn/airlines.xml
Example of d3-ForceEdgeBundling on US airline routes graph.
<?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 id="x" for="node" attr.name="x" attr.type="double"/>
<key id="tooltip" for="node" attr.name="tooltip" attr.type="string"/>
<key id="y" for="node" attr.name="y" attr.type="double"/>
// ==UserScript==
// @name Upwork - after charge
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.upwork.com/ab/reports/in-progress
// @grant none
// ==/UserScript==
@bumbeishvili
bumbeishvili / .block
Last active April 9, 2021 20:33
Organizational chart using d3.v5
license: mit