Instantly share code, notes, and snippets.

🏠
Working from home

# Herinson Rodrigues herodrigues

🏠
Working from home
• Porto Nacional, Brazil
Last active September 23, 2022 11:49
Dark Theme for Oxygen XML Editor
View oxygen_dark_theme.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
 annotation.highlight.color 71,89,76 author.background-color 21,26,37
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,

Created December 3, 2019 17:07
View Fix time in Windows or Linux (dual boot).md

Linux:

timedatectl set-local-rtc 1 --adjust-system-clock

Windows:

• Navigate to the following key in the left pane of the registry editor:
Last active July 29, 2022 05:55
rules.xml
View rules.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

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

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

Last active November 12, 2017 19:57
StarCraft II API installation with Eclipse
View StarCraft II API installation with Eclipse.md
• Build SC2 API project
$git clone --recursive https://github.com/Blizzard/s2client-api && cd s2client-api$ mkdir build && cd build
$cmake ../$ make
Last active July 23, 2019 21:52
BOCA Online Contest Administrator installation tutorial
View Installing BOCA Online Contest Administrator.md

## Requirements

The system was tested with:

• postgresql 9.4
• apache 2.2
• php 5.6

Note: The symbol $means that you have to execute the commands in a terminal Created May 12, 2016 23:23 View tikzexample.md Vários exemplos aqui: http://www.texample.net/tikz/examples/area/mathematics/ $ f(x) = (x - 2)^4 - (x - 2)^3 + (x - 2)^2 + 1 $,$ x^* = 2 \$

\vspace{2em}
\begin{center}
\begin{tikzpicture}[scale=1.5,
declare function={
func(\x) = (\x - 2)^4 - (\x - 2)^3 + (\x - 2)^2 + 1;