Skip to content

Instantly share code, notes, and snippets.

View matt-auckland's full-sized avatar
💭
プログラミング中

Mathew matt-auckland

💭
プログラミング中
View GitHub Profile
@matt-auckland
matt-auckland / hide_articles.js
Last active December 16, 2019 03:15
Hide premium articles on a page on medium
// Only tested on topic pages, e.g. https://medium.com/topic/Javascript
function hideArticles() {
document.querySelectorAll('.star-15px_svg__svgIcon-use').forEach(hidePremiumArticles);
}
function hidePremiumArticles(node) {
const targetNode = climb(node, 0);
if (targetNode.tagName !== 'SECTION') return;
@matt-auckland
matt-auckland / dig.js
Last active November 18, 2019 01:37
Count nodes
var maxDepth = 0;
const boop = function (boopName = '#app') {
maxDepth = 0;
var parent = document.querySelector(boopName);
console.log(dig(parent, 0, maxDepth));
console.log(`max depth found: ${maxDepth}`);
}
const dig = function (parent, currentDepth) {

Keybase proof

I hereby claim:

  • I am matt-auckland on github.
  • I am gekisai (https://keybase.io/gekisai) on keybase.
  • I have a public key ASBuiBr7mbDUYwcvkW-bFirRmgFBVdd0A7ln-HyhBFJwkAo

To claim this, I am signing this object:

@matt-auckland
matt-auckland / instructions.md
Last active November 2, 2018 04:54
Updating NavCoin on Windows using the .zip file

Install steps

  1. Make sure you wallet is shutdown.
  2. Ensure you have a back up of your wallet.dat just in case
  3. Download the zip, 64 bit version 32 bit version
  4. Unzip it
  5. Locate the installation directory for your old install, it should be something like C:\Program Files\NavCoin\. Inside that folder, there will be a folder called bin, we are going to copy some files into this.
  6. Inside the folder you extracted in step 4, there will be a folder called bin, copy all the files from inside this and paste them into the folder from step 5 C:\Program Files\NavCoin\bin.
  7. One of these files will be called navcoin-qt.exe, running this should start the wallet.