Skip to content

Instantly share code, notes, and snippets.

@d9k
d9k / Emojis.md
Last active November 25, 2023 23:57
Diary / texbook emojis for Obsidian
/*
see
https://marketplace.visualstudio.com/items?itemName=be5invis.vscode-custom-css
*/
/*
https://stackoverflow.com/questions/47266613/vscode-hide-top-right-icons/69788835#comment133175034_69788835
*/
.tabs-and-actions-container .editor-actions {
/﹋\_
(҂`_´)
<,︻╦╤─ Сoбиpaю apмию против прокрастинации
/﹋\ ███████ ]▄▄▄▄▄▄▄▄▄▄▄▄▄
▂▄▅████ ████▅▄▃
█████████████████
◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲
Кoпиpуй и paсстaвляй тaм где прокрастинируют люди!
@d9k
d9k / h.ts
Created March 5, 2022 01:38
helpers
export function json(o: any): string {
return JSON.stringify(o, null, 2);
}
export function ljson(o: any): void {
console.log(json(o));
}
@d9k
d9k / superset_config_docker.py
Created January 13, 2022 07:44
Superset welcome page redirect
import logging
import pprint
from flask import Flask, redirect
from flask_appbuilder import expose, IndexView
from superset.typing import FlaskResponse
logger = logging.getLogger()
@d9k
d9k / README.md
Last active December 2, 2021 22:08
presto-0-265-build-fail-log
@d9k
d9k / gist:014761edf4dda44698584dedc67c974e
Created October 14, 2021 06:03
react-functional-state-updates.jsx
import "./styles.css";
import React, { useState } from "react";
function CounterVarUpdates({ initialCount }) {
const [count, setCount] = useState(initialCount);
return (
<div>
Count: {count}
<button onClick={() => setCount(initialCount)}>Reset</button>
<button onClick={() => setCount(count + 1)}>+</button>
# https://stackoverflow.com/questions/67341992/constructor-with-return-generic-type-based-on-param-enum-ts2322/67376400#67376400
enum Enum {
one = 'one',
two = 'two',
}
type Type1 = {
field: typeof Enum.one;
anotherField: number;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d9k
d9k / back.svg
Created February 11, 2021 11:59
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.