Skip to content

Instantly share code, notes, and snippets.

Jason Schwarzenberger master5o1

View GitHub Profile
@master5o1
master5o1 / Scrabble
Last active Jan 31, 2020
A scrabble-like arrangement of Tannercoin related words (ie, mostly pokemon names). - https://txt.t0.vc/NYZN
View Scrabble
V
SLOWPOKE PERSIAN
L H I
FARFETCH'D Y D S D VENONAT
O PIDGEOTTO E I I
BEFRIEND N E A W L D C
A B BOOP Y R MAGNEMITE O H
T R Mr.MIME O A P R A
SEADRA NATTY PAUL GLOOM I N G CLEFAIRY VICTREEBEL
HODL U L FARM B B WEEZING M U N M
@master5o1
master5o1 / Skinny 4G Broadband renewal script.md
Last active Jun 3, 2020
Checks the balance to automatically apply daily Data Binge packs. Can be configured to run frequently using a cronjob.
View Skinny 4G Broadband renewal script.md

Repository: https://git.1j.nz/jason/skinny-renewal

I was looking for options to get better than ADSL internet for my rural house. I had a prepay Skinny 4G Broadband Huawei b315s-608 modem.

I couldn't purchase the 300GB/$59 pack for my address so wondered how I can achieve a reasonable* price for high data usage. Figured out that $5/24 hour unlimited Data Binge would give me a max price of $200 a month.

It would probably only be cost effective if monthly usage were greater than 4x120GB.

@master5o1
master5o1 / Declutter.md
Last active Jun 3, 2020
Removes the clutter from various New Zealand news websites and creates a page for the article on telegra.ph.
View Declutter.md
@master5o1
master5o1 / NZHerald Bypass.md
Last active Jun 3, 2020
Bypasses the new NZHerald Premium paywall using Javascript to peek at the LD+JSON Schema to figure out which CSS selector is being used to hide content.
View NZHerald Bypass.md

NZHerald Bypass

Bypasses the new NZHerald Premium paywall using Javascript to peek at the LD+JSON Schema to figure out which CSS selector is being used to hide content.

I made this mostly for myself.

Repository

Primary source repository is located on my gogs instance, https://git.1j.nz/firefox-extensions/nzherald-bypass.

@master5o1
master5o1 / vue-signature-pad.d.ts
Last active Mar 27, 2019
Typescript type definitions for [vue-signature-pad](https://www.npmjs.com/package/vue-signature-pad), probably not entirely correct.
View vue-signature-pad.d.ts
declare module 'vue-signature-pad' {
import signature_pad, * as SignaturePad from 'signature_pad';
import Vue from 'vue';
export interface IOptions extends SignaturePad.IOptions {}
export interface IPointGroup extends SignaturePad.IPointGroup {}
export interface Status {
isEmpty: boolean;
data?: any;
@master5o1
master5o1 / qif2json.ts
Last active Jul 16, 2019
This is qif2json.ts is a minor refactor to bring Typescript support to the qif2json package available on NPM. It is the basic QIF parsing without any other requirements from Node (fs) or NPM (iconv, jschardet). This means that it is possible to do the QIF parsing in the browser.
View qif2json.ts
/* Adapted by Jason Schwarzenberger
* for Typescript from
* qif2json
* https://github.com/spmason/qif2json
*
* Copyright (c) 2012 Steve Mason
* Licensed under the MIT license.
*/
function parseDate(str: string, format: string) {
@master5o1
master5o1 / fizzbuzz.js
Last active Jun 25, 2020
Displays FizzBuzz without containing the string "Fizz" or "Buzz". Reads the source and extracts the characters from the destructured function parameters. https://jsfiddle.net/master5o1/8ekog4j9/
View fizzbuzz.js
const GO=( F,i,z,{[z[0 ]]:B},u, zz)=>B((F% u?'':GO[z [u/ u]] ()[z[zz- zz/zz]](u-
u,u **u +zz -zz )[z [u] ](z [zz ],'' )[
z[/* **/ zz- u/u] ](u -u, zz- u/u ))+ (F%
zz?'':GO[z [u/ u]] ()[ z[zz-zz/ zz] ](u -u,u **u
+zz -zz )[z [u] ](z [zz ],'' )[z [zz -u/
u]] (zz -u/ u)) ||F )|| F< zz** u-u **u
+zz -u?GO(F+1,i ,z,i[z[u- zz/zz]],u ,zz):null ;//)[z[z z-u/u]])[ z[zz-u/u]
GO(1,this,['log', 'toString', 'console', 'replace', 'substring', /[^a-z]/gi],console,3,5);
@master5o1
master5o1 / html-quine.html
Last active Jun 3, 2020
html (+js) quine using data:text/html, for the url bar of a browser.
View html-quine.html
data:text/html,<html><body><div></div><script>document.getElementsByTagName('div')[0].innerText = 'data:text/html,' + document.getElementsByTagName('html')[0].innerHTML</script></body></html>
View keybase.md

Keybase proof

I hereby claim:

  • I am master5o1 on github.
  • I am master5o1 (https://keybase.io/master5o1) on keybase.
  • I have a public key whose fingerprint is 943F 643F 3D22 A79E AB07 85D2 4773 2B7C A17C F5FD

To claim this, I am signing this object:

@master5o1
master5o1 / angular-websocket-rpc.js
Last active Mar 23, 2016
angular websockets json-rpc2 service that uses [angular-websockets](https://github.com/AngularClass/angular-websocket). JSFiddle example: https://jsfiddle.net/master5o1/bxvauLcw/
View angular-websocket-rpc.js
angular.module('ngWebsocketRpc', ['ngWebSocket', 'guid'])
.factory('$rpc', ['$websocket', '$q', 'guid', function($websocket, $q, guid) {
var seconds = 1000;
var history = {};
var methods = {};
var $ws;
var handlers = {
onOpen: angular.noop,
onClose: angular.noop,
You can’t perform that action at this time.