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 type DistributiveOmit<T, K extends PropertyKey> = T extends any | |
? Omit<T, K> | |
: never; | |
export type DistributivePick<T, K extends keyof T> = T extends any | |
? Pick<T, K> | |
: never; |
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
# ~/.config/systemd/user/sommelier\@0.service.d/override.conf | |
[Service] | |
Environment="SOMMELIER_SCALE=1.2" | |
Environment="GDK_SCALE=2" |
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
--- Include/objimpl.h | |
+++ Include/objimpl.h | |
@@ -250,7 +250,7 @@ | |
union _gc_head *gc_prev; | |
Py_ssize_t gc_refs; | |
} gc; | |
- double dummy; /* force worst-case alignment */ | |
+ long double dummy; /* force worst-case alignment */ | |
} PyGC_Head; |
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 (css) | |
url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,500;0,600;0,700;1,500;1,600;1,700&display=swap&css"); |
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 { serve } from "https://deno.land/std@0.50.0/http/server.ts"; | |
const s = serve({ port: 8000 }); | |
console.log('Server online at http://localhost:8000'); | |
for await (const req of s) { | |
switch(req.url) { | |
case '/run': { | |
const {headers, method} = req; | |
const contentType = headers.get('Content-Type'); | |
if (method === 'POST' && contentType == 'application/javascript') { | |
const textDecoder = new TextDecoder(); |
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 test = async () => { | |
const { createCache, createResource } = require('./cacheProvider'); | |
function loadUpperCase(text) { | |
console.log('CALLED!'); | |
return Promise.resolve(text.toUpperCase()); | |
} | |
function loadUpperCase2(text) { | |
console.log('CALLED 2!'); |
I hereby claim:
- I am maman on github.
- I am maman (https://keybase.io/maman) on keybase.
- I have a public key ASBN5FMoA54ZASa7NWTWp0sHqwkRUxCu66M8SfGcAvTXkgo
To claim this, I am signing this object:
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
class TTLMap { | |
constructor(TTL) { | |
this.ttl = TTL; | |
this.timeoutData = {}; | |
this.data = new Map(); | |
} | |
_clearTimeout(key) { | |
clearTimeout(this.timeoutData[key]); | |
delete this.timeoutData[key]; |
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
// ==UserScript== | |
// @name Better CNN Lite | |
// @namespace https://github.com/maman | |
// @version 1.0.0 | |
// @downloadURL https://gist.githubusercontent.com/maman/21288c00d8b53e855604b3acde74e902/raw/better-cnn-lite.user.js | |
// @match *://lite.cnn.io/* | |
// ==/UserScript== | |
/*eslint-disable*/ | |
/* axios v0.16.2 | (c) 2017 by Matt Zabriskie */ |
NewerOlder