Skip to content

Instantly share code, notes, and snippets.

View NetOpWibby's full-sized avatar
🔮
M A G I C

netop://ウエハ NetOpWibby

🔮
M A G I C
View GitHub Profile
I am attesting that this GitHub handle NetOpWibby is linked to the Tezos account tz1UVwR1MhqfytRbypB1jeFbFKTLu4LSFE9A for tzprofiles
sig:edsigtz7MRMAji785C6515w3qjhhVRLxY22vNHLPkshmeM8KrFwjZEibMjoBWGDU9bnryDUq1VJ1ZWVJaE5URC51AkaZ8ZkUjCZ

Keybase proof

I hereby claim:

  • I am NetOpWibby on github.
  • I am netopwibby (https://keybase.io/netopwibby) on keybase.
  • I have a public key whose fingerprint is 4B05 7A94 358E FFA9 7AA4 7E8E FF55 C87C EE32 D395

To claim this, I am signing this object:

@NetOpWibby
NetOpWibby / patch-svelte-compiler.js
Last active October 19, 2021 19:50
An excellent fix for Svelte not liking a lot of syntax
/*
patch-svelte-compiler.js
replace push with reassign
this is a fork of the excellent code by milahu (https://github.com/milahu)
https://github.com/sveltejs/svelte/issues/4694#issuecomment-637434624
all i did was clean the code to my liking, consistency and whatnot
@NetOpWibby
NetOpWibby / access.svelte
Last active August 22, 2021 21:18
Sapper session handling (creation and updating). Idk if this is the best way of doing things but at least it *works*. Feel free to scrutinize this code and let me know all the ways it sucks.
<script>
// import
import { onMount } from "svelte";
// util
import { metadata } from "~util";
// redirect
onMount(() => {
// `location.replace` forces a hard refresh in the browser,
@NetOpWibby
NetOpWibby / tracker_blocking.rb
Created July 30, 2020 21:33 — forked from dhh/tracker_blocking.rb
Current list of spy pixels named'n'shamed in HEY, as of April 23, 2020
module Entry::TrackerBlocking
extend ActiveSupport::Concern
included do
has_many :blocked_trackers
end
email_service_blockers = {
"ActiveCampaign" => /lt\.php(.*)?l\=open/,
"AWeber" => "openrate.aweber.com",
@NetOpWibby
NetOpWibby / TurnipPrices.cpp
Created April 7, 2020 19:30 — forked from Treeki/TurnipPrices.cpp
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@NetOpWibby
NetOpWibby / README.md
Created February 20, 2020 04:32 — forked from miku/README.md
git --track vs --set-upstream vs --set-upstream-to

README

Short excursion into git --track, --set-upstream and --set-upstream-to.

All examples use the aliases co for checkout and br for branch.

Setup:

$ git clone git@github.com:AKSW/OntoWiki.git

@NetOpWibby
NetOpWibby / prettySortByKeys.js
Created February 18, 2020 23:18 — forked from aleph-naught2tog/prettySortByKeys.js
Sort an object by keys
const sortByKeysLegibly = maybeObject => {
// presumably we want the array to stay ordered. Possibly not, but if there is
// anything that should preserve order, it's an array
if (maybeObject instanceof Array) {
return maybeObject;
}
// don't sort strings etc
if (typeof maybeObject !== 'object') {
return maybeObject;
@NetOpWibby
NetOpWibby / nationwide.ipynb
Created February 4, 2020 20:01 — forked from willettk/nationwide.ipynb
Make a list of all the (English) Wikipedia page titles that can be sung to the tune of the Nationwide jingle.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NetOpWibby
NetOpWibby / index.html
Created January 30, 2020 05:43 — forked from billiegoose/index.html
magic portal (isomorphic-git)
<div>
<input id="repository" type="text" style="width: 50em" title="Tip: enter a private repo URL to see the credentialManager plugin prompt for a password.">
<button type="button" id="cloneButton">Clone</button>
</div>
<output id="log" style="white-space: pre; font-family: monospace;"></output>
<script src="https://unpkg.com/magic-portal"></script>
<script>
let worker = new Worker("./worker.js")