Skip to content

Instantly share code, notes, and snippets.

View hmil's full-sized avatar

Hadrien Milano hmil

View GitHub Profile
@hmil
hmil / shrug.js
Created November 14, 2019 10:26
insert shrug emoji
// Create a bookmark with this content:
javascript:((el => 'value' in el && typeof el.value === 'string' && (el.value = el.value + '¯\\_(ツ)_/¯') && void 0)(document.activeElement))
// Use it to insert a shrug emoji in the text field currently focused
@hmil
hmil / definitions.ts
Created March 3, 2020 20:47
TypeScript import stripping
export type MyType = { foo: string };
export interface MyInterface {
foo: string;
}
export class MyClass implements MyInterface {
constructor(private foo: string) { }
}