-
vscode, spotify, git, slack, discord
-
fira code
-
sync vs code settings
-
tabby
-
diodon (gestionnaire de presse papier) + raccourci clavier
-
gestionnaire de fichiers avec des colonnes de Miller : patheon-files
-
activation smooth scroll dans vs code et dans ff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Coucou |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// Place your GLOBAL snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
// Placeholders with the same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "scope": "javascript,typescript", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from https://github.com/ReactiveX/rxjs/blob/b25db9f369b07f26cf2fc11714ec1990b78a4536/src/internal/operators/shareReplay.ts#L26-L37 | |
import xs, { Stream, MemoryStream, Subscription } from 'xstream' | |
export function replay<T>(source: Stream<T>) { | |
let subject: MemoryStream<T> | |
let refCount = 0 | |
let subscription: Subscription | |
let innerSub: Subscription | |
let hasError = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = [ | |
{ name: "chocolat pépites", price: 2.81 }, | |
{ name: "pulco", price: 2.58 }, | |
{ name: "ampoule 1", price: 5.4 }, | |
{ name: "ampoule 2", price: 2.57 }, | |
{ name: "emmental", price: 2.58 }, | |
{ name: "emmental", price: 2.58 }, | |
{ name: "comté", price: 4.94 }, | |
{ name: "courgette", price: 0.55 }, | |
{ name: "chanterelles", price: 3.49 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function captureClicks(callback) { | |
const listener = makeClickListener(callback) | |
if (typeof window !== 'undefined') { | |
document.addEventListener('click', listener, false) | |
} | |
return () => { | |
document.removeEventListener('click', listener) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```sh | |
mkdir patches | |
mv snabbdom+0.7.0.patch patches/snabbdom+0.7.0.patch | |
npm install [email protected] [email protected] && ./node_modules/.bin/patch-package | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fromEvent from 'xstream/extra/fromEvent' | |
import xs from 'xstream' | |
export default function jqueryDriver () { | |
return (instruction$) => { | |
instruction$.addListener({ | |
next: fn => { | |
if (typeof fn === 'function') {fn()} | |
else {fn.call()} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const typeButton = extended({ | |
attrs: { | |
type: 'button', | |
}, | |
}) | |
const blueBackground = extended({ | |
style: { | |
'background-color': 'blue', | |
'color': 'white', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {addResizeListener} from './resizeListener' | |
import canvasPixelRatio from './pixelRatio' | |
export class FlexibleCanvas extends HTMLDivElement { | |
static get observedAttributes() {return ['width', 'height', 'pixelRatio'] } | |
createdCallback () { | |
this.canvas = this.appendChild(document.createElement('canvas')) //eslint-disable-line | |
this.canvas.setAttribute('style', ` | |
display: block;\ |
NewerOlder