Skip to content

Instantly share code, notes, and snippets.

@yorickdowne
yorickdowne / rp-and-eth-docker.md
Last active December 24, 2021 14:24
RocketPool and eth-docker solo staking side by side
@charlieknoll
charlieknoll / debugging.md
Last active April 15, 2020 21:19
Debugging Rotki

Debugging Rotki

First be sure you can run rotki locally using the build from source install directions

Setting up the python backend for debugging

  • Open the root rotki folder in a vscode instance
  • Install the Python vscode extension
  • Create a new launch configuration (Run -> Add configuration...) of type Python
  • Update the launch.json:
@evdama
evdama / _favicon.svelte
Last active July 28, 2019 16:56
have a dynamic favicon showing the number of unread messages (same as discord)
<script>
import { onMount } from 'svelte';
// TODO: use numberMessages dynamically at some point
let numberMessages = '4';
onMount(() => {
window.onload = function() {
var favicon = document.getElementById('favicon');
var faviconSize = 16;
@bisubus
bisubus / ES5-ES6-ES2017-ES2019 omit & pick
Last active April 13, 2024 21:03
ES5/ES6/ES2017/ES2019 omit & pick
@tracker1
tracker1 / 01-directory-structure.md
Last active July 17, 2024 07:09
Anatomy of a JavaScript/Node project.

Directory structure for JavaScript/Node Projects

While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.

Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.

Directories

  • lib/ is intended for code that can run as-is
  • src/ is intended for code that needs to be manipulated before it can be used