Skip to content

Instantly share code, notes, and snippets.

View resynth1943's full-sized avatar

resynth1943

View GitHub Profile
@resynth1943
resynth1943 / Guide.md
Last active January 29, 2024 19:03
Watch2Gether -- The Cheat Sheet
Watch2Gether -- The Cheat Sheet

Getting Started

Before you do anything, you need a room! Go to the main website over at https://www.watch2gether.com/, then hit the big "Create your Room" button.

NOTE: You've just created a temporary room. This room will automatically be deleted after 24 hours. If you don't want that, skip to Saving Your Room and come back here after. If you plan to do that, you should probably create a Watch2Gether account.

@resynth1943
resynth1943 / opaque-types.ts
Created July 19, 2019 10:37
TypeScript - Opaque Types
type Opaque<V> = V & { readonly __opq__: unique symbol };
type AccountNumber = Opaque<number>;
type AccountBalance = Opaque<number>;
function createAccountNumber (): AccountNumber {
return 2 as AccountNumber;
}
function getMoneyForAccount (accountNumber: AccountNumber): AccountBalance {
@resynth1943
resynth1943 / public_comment.md
Last active April 19, 2021 18:25
dis.cool -.A collection of notes

I've reported this to Discord through the official tools, although I have my doubts that it will come to any fruition, as evidenced by the previous bundle of reports which have been ignored. I can only hope the publicity of this forum will prove to be an influence. Also, I've been in touch with the individuals operating this platform (dis.cool) via several mediums such as Twitter and Telegram, but to no avail.

They are inherently unwilling to remove or allow me to view any data collected on me, which is a direct breach of GDPR. Following this, hear are the sections this service are choosing to disregard, in favour of the non-consentual collecting of data on an atrocious scale. This needs to stop.

@resynth1943
resynth1943 / doc.md
Last active April 10, 2021 09:18
A document about Syretia.

I'd like to bring up a difficult topic, today. Simon. For a while, he's been using an alternate account to watch me (I'm clearly a very interesting person). This has been going on for a while, and you may not realize this. Simon has been messaging me with warnings about speaking about him at two separate times, and it's quite obvious that he's using his alternate account exactly for this. I shouldn't have to remind you that this behaviour is extremely inappropriate, and I hope that you'll put a stop to it immediately. He's also been using another server to contact me (the Blargbot one), but I've left that one. I don't want to leave this one.

You're probably wondering why I don't just block the account? I have literally just a moment ago, but I really don't want anyone to experience this too. It's completely inappropriate for a moderator to be contacting me, and issuing threats like the following.

@resynth1943
resynth1943 / ublock_filters.txt
Created December 28, 2020 21:24
Remove YouTube login nagging
! 2020-12-28 https://www.youtube.com
www.youtube.com##.ytd-button-renderer.style-scope.yt-simple-endpoint > .size-small.style-suggestive.ytd-button-renderer.style-scope
www.youtube.com###voice-search-button > .size-default.style-default.ytd-masthead.style-scope > .ytd-button-renderer.style-scope.yt-simple-endpoint > .size-default.style-default.ytd-button-renderer.style-scope
www.youtube.com##.ytd-button-renderer.style-scope.yt-simple-endpoint > .size-default.style-destructive.ytd-button-renderer.style-scope
www.youtube.com##ytd-button-renderer.size-default.style-default.force-icon-button.ytd-menu-renderer.style-scope > .ytd-button-renderer.style-scope.yt-simple-endpoint
www.youtube.com###simple-box > .ytd-comments-header-renderer.style-scope
www.youtube.com###owner-sub-count
www.youtube.com###container > .ytd-sentiment-bar-renderer.style-scope
www.youtube.com###sentiment
www.youtube.com###toolbar.ytd-comment-action-buttons-renderer
@resynth1943
resynth1943 / di.js
Created December 17, 2020 21:53
A DI library in 952B
const n=Object.assign(Symbol("DI.Nothing"),{__nothing__:!0});function e(n){return Symbol(`DI.Key(${n})`)}function o(e,o=n,r=!0){r&&function(n){throw new Error(n||"This code needs to run inside a domain execution context.")}();const{cache:t}=undefined,i=t.has(e)?t.get(e):o;if(i===n)throw new Error(`The current domain does not have a provider for key "${String(e)}", and a default value has not been provided.`);return i}function r(n,e){return o(n,e,!0)}function t(n,e){return o(n,e,!1)}const i=Object.prototype.hasOwnProperty;function u(n,e){return{key:n,provide:e}}function c(n){return u(e("DI.AnyProvider"),n)}function d(n){return r(n.key,n.provide)}function a(n){return t(n.key,n.provide)}function f(n){return"object"==typeof n&&"symbol"==typeof n.key&&(e=n,o="provide",i.call(e,o));var e,o}export{n as Nothing,e as createKey,c as createProvider,f as isProvider,u as provide,r as useKey,t as useLibraryKey,a as useLibraryProvider,d as useProvider};
//# sourceMappingURL=inject.bundle.js.map
@resynth1943
resynth1943 / explained.js
Last active April 28, 2020 02:03
Tiny FizzBuzz
for (
let /* index */ i = 0,
/* Buzz */ x,
/* Fizz */ y,
/* Buzz string */ l,
/* Empty string constant */ v = "",
/* Fizz string */ m,
/* Destructed the `console` for shorter code: */ { log: K } = console;
/* We need to do the FizzBuzz calculation 100 times. */ i <= 100;
/* And, of course, increment the index each time. Just a normal `for` loop so far. */ i++

Keybase proof

I hereby claim:

  • I am resynth1943 on github.
  • I am resynth1943 (https://keybase.io/resynth1943) on keybase.
  • I have a public key ASD4wKYcD-k5fYvezTEaMu7yzKWC9EptSJ8wV5Q6fXOkNQo

To claim this, I am signing this object:

@resynth1943
resynth1943 / suggestions.md
Last active November 15, 2019 18:31
How not to write an article.

Each exhibit has a codeblock containing git diffs. The - represents a section of text that should be removed, while + means a section of text that should be kept. Lines beginning with # represents a comment added by me.

Exhibit A - Textual Example

- In this article we take a look at how to downgrade from one edition of Windows 7 to another. For instance, if you have Windows 7 Professional, but would like to downgrade to Windows 7 Home Premium. You might ask, for what reason? Well, there are scenarios where this issue might come up. Maybe you want to reassign Windows 7 Professional to another computer, and install Windows 7 Home Premium on it instead. Maybe the edition is not being used effectively and could be more useful else where such as a laptop you carry to work since Windows 7 Professional includes a lot of business features. 
- The problem is the process of reassigning licenses, this would probably mean you will have to backup data, prepare to reinstall applications and drivers then 
@resynth1943
resynth1943 / i3_config
Created October 31, 2019 15:52
Dotfiles
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!