Skip to content

Instantly share code, notes, and snippets.

View konhi's full-sized avatar

Jan Szymański konhi

View GitHub Profile
{
"openapi": "3.0.0",
"info": {
"title": "ayeT-Studios Publisher API Documentation",
"version": "1.11.5",
"contact": {
"url": "https://www.ayetstudios.com/contact-us",
"name": "ayeT-Studios GmbH",
"email": "support@ayetstudios.com"
},
@konhi
konhi / Icon.tsx
Created September 6, 2023 13:32
React Server Components - dynamic material icon embedded as svg
type IconProps = {
name: string;
};
const PlaceholderIcon = () => {
return (
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
<path d="M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" />
</svg>
);
@konhi
konhi / script.js
Last active October 22, 2021 15:41
Microsoft Teams Forms private anonymous hide personal info and answers
// Press Ctrl + Shift + I and copy paste it into console
const container = document.querySelector('.office-form-question-body');
const points = document.querySelectorAll('.office-form-theme-quiz-point');
const bullets = document.querySelectorAll('.office-form-question-choice-text-row input');
const checkmarks = document.querySelectorAll('.ms-Icon--CheckMark');
const questionNumbers = document.querySelectorAll('.office-form-question-ordinal');
const errors = document.querySelectorAll('.office-form-error-question');
// uncheck every bullet point
/* https://www.reddit.com/r/ObsidianMD/comments/p0rzkk/obsidian_a_viable_alternative_to_notion/h8aa0v7/ */
.markdown-preview-view td, .markdown-preview-view th {
border: 0;
}
.markdown-preview-view table {
width: 100%;
}
@konhi
konhi / distinct-color-graph-view.css
Created August 9, 2021 12:21
Distinct Color Graph View in Obsidian.md
/* Resolves https://www.reddit.com/r/ObsidianMD/comments/p0w0ib/changing_the_colour_of_uncreated_notes_in_graph/ */
/* Changes color and opacity of uncreated notes. */
.graph-view.color-fill-unresolved {
color: #7b6cd9;
opacity: 1.0;
}