Skip to content

Instantly share code, notes, and snippets.


Jeroen van Warmerdam jerone

  • @CT-Energy
  • The Netherlands
  • Twitter @jeronevw
View GitHub Profile
jerone /
Last active Apr 27, 2022
NVM global packages
npm i -g npm-check-updates web-ext yo @angular/cli cspell @cspell/dict-nl-nl generator-eslint
NSExceptional / BrickLinkHighResImages.js
Last active Dec 21, 2020
A user script to make product images on BrickLink use a larger image file
View BrickLinkHighResImages.js
// ==UserScript==
// @name BrickLink high res images
// @version 0.1
// @description Make product images on BrickLink use a larger image file
// @author Tanner Bennett / @NSExceptional / u/ThePantsThief
// @match*
// @match https://**
// @match*
// @grant none
// ==/UserScript==
belaw / fork.reg
Last active Aug 7, 2021
Fork Git Client Windows Explorer Integration
View fork.reg
Windows Registry Editor Version 5.00
@="Open in &Fork"
Mennez / clarity-ng-select.scss
Last active Jun 30, 2021
This stylesheet allows you to use ng-select in clarity
View clarity-ng-select.scss
Clarity ( (at the moment of writing) does not have an auto-complete/combobox component.
ng-select is currently one of the more popular angular2/4 packages for adding auto-complete components to an angular project.
This style sheet allows anyone to use ng-select in a angular+clarity project that uses clarity forms.
To get these styles applied to your ng-select component, declare your form component as follows:
<form clrForm>
LayZeeDK / angular-cli-node-js-typescript-rxjs-compatiblity-matrix.csv
Last active Aug 9, 2022
Angular CLI, Angular, Node.js, TypeScript, and RxJS version compatibility matrix. Based on changelogs, metadata, and hands-on experience. Major Node.js and RxJS versions above officially supported versions are not listed. Note that minor TypeScript versions also contain breaking changes.
View angular-cli-node-js-typescript-rxjs-compatiblity-matrix.csv
Angular CLI version Angular version Node.js version TypeScript version RxJS version
1.0.0-beta.17 (package name: angular-cli) ~2.0.2 ^6.9.5 ~2.0.10 ^5.0.3
1.0.0-beta.20-1 (package name: angular-cli) ~2.1.2 ^6.9.5 ~2.0.10 ^5.0.3
1.0.0-beta.22-1 (package name: angular-cli) ~2.2.4 ^6.9.5 ~2.0.10 ^5.0.3
1.0.0-beta.30 ~2.3.1 ^6.9.5 ~2.0.10 ^5.0.3
1.0.0-rc.4 ~2.4.10 ^6.9.5 ~2.0.10 ^5.0.3
~1.0.6 >= 4.0.3 <= 4.1.3 ^6.9.5 ~2.2.2 ^5.0.3
~1.1.3 >= 4.0.3 <= 4.1.3 ^6.9.5 ~2.3.4 ^5.0.3
~1.2.7 >= 4.0.3 <= 4.1.3 ^6.9.5 ~2.3.4 ^5.0.3
~1.3.2 >= 4.2.6 <= 4.4.7 ^6.9.5 ~2.4.2 ^5.0.3
yangshun /
Last active Aug 8, 2022
Comparison between tools that allow you to use ESLint and Prettier together.
prettier-eslint eslint-plugin-prettier eslint-config-prettier
What it is A JavaScript module exporting a single function. An ESLint plugin. An ESLint configuration.
What it does Runs the code (string) through prettier then eslint --fix. The output is also a string. Plugins usually contain implementations for additional rules that ESLint will check for. This plugin uses Prettier under the hood and will raise ESLint errors when your code differs from Prettier's expected output. This config turns off formatting-related rules that might conflict with Prettier, allowing you to use Prettier with other ESLint configs like eslint-config-airbnb.
How to use it Either calling the function in your code or via [prettier-eslint-cli](
mattdot / UserAgent.cs
Last active Nov 17, 2017
Set the UserAgent for a UWP WebView
View UserAgent.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace UA
public static class UserAgent
paulirish /
Last active Aug 7, 2022
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$" "$extension_id%26uc" 
unzip -d "$extension_id-source" "$"

Thx to crxviewer for the magic download URL.

albertodebortoli /
Last active Jul 16, 2022
Change the author of a commit in Git

Using Interactive Rebase

git rebase -i -p <some HEAD before all of your bad commits>

Then mark all of your bad commits as "edit" in the rebase file, and when git asks you to amend each commit, do

git commit --amend --author "New Author Name <>"

edit or just close the editor that opens, and then do

DanDiplo / JS-LINQ.js
Last active Aug 9, 2022
JavaScript equivalents of some common C# LINQ methods. To help me remember!
View JS-LINQ.js
// JS array equivalents to C# LINQ methods - by Dan B.
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version):
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },