Skip to content

Instantly share code, notes, and snippets.

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

Herinson Rodrigues herodrigues

🏠
Working from home
  • Porto Nacional, Brazil
View GitHub Profile
@herodrigues
herodrigues / README.md
Created October 26, 2020 20:03 — forked from fgeorges/README.md
Graph with expandable nodes, with D3

Note: A solution has been found, see below.

I am trying to create an SVG graph of nodes with D3, with "expandable nodes." That is, when one clicks on a node, its siblings are added to the graph (or more precisely: its siblings in the graph data are added to the graph visualization.)

The visualization uses a d3 force simulation (using D3 v5). When a node (an SVG circle) is clicked, the simulation is stopped (in case it was still running, to make sure there is no new node with no coordinates added in the middle of a run,) the corresponding nodes and links are added to the corresponding arrays,

@herodrigues
herodrigues / restore_refind_on_windows.md
Last active March 18, 2019 13:27 — forked from dragon788/longwindedname.md
Restore rEFInd as default boot manager from Windows after updates

After losing access to rEFInd yet again (Windows 10 Anniversary Edition), I was able to find the proper invocation of BCDEdit thanks to a helpful person on StackOverflow. None of the Microsoft documentation mentions this, but you NEED single quotes around {bootmgr} for sure if you are in the PowerShell shell, but possibly also if you are in the Command Prompt. This allowed me to add a new entry for rEFInd and I've had to do this multiple times so I know it works on Windows 10.

bcdedit /set {bootmgr} path \EFI\refind\refind_x64.efi 

becomes

bcdedit /set '{bootmgr}' path \EFI\refind\refind_x64.efi