Skip to content

Instantly share code, notes, and snippets.

View mioe's full-sized avatar
🐣
top secret

Misha Gezha mioe

🐣
top secret
View GitHub Profile
:root {
/* https://developer.apple.com/design/human-interface-guidelines/color#iOS-iPadOS-system-colors */
/* freeze 2024-07-25 */
--light-red: rgb(255, 59, 48);
--dark-red: rgb(255, 69, 58);
--light-accessible-red: rgb(215, 0, 21);
--dark-accessible-red: rgb(255, 105, 97);
--light-orange: rgb(255, 149, 0);
@mioe
mioe / .gitignore
Created July 17, 2024 12:00
.gitignore for empty folder
*
!.gitignore
@mioe
mioe / eslint.config.js
Last active May 30, 2024 17:06
my default rules
/**
* Required packages:
* pnpm add @eslint/js @unocss/eslint-config eslint unocss -D
*/
import js from '@eslint/js'
import pluginVue from 'eslint-plugin-vue'
import unocss from '@unocss/eslint-config/flat'
export default [
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
html:not(.dark) {
@mioe
mioe / deno.jsonc
Last active May 6, 2023 11:40
my config for fmt deno
{
"tasks": {
"dev": "deno run --watch main.ts"
},
"fmt": {
"semiColons": false,
"singleQuote": true,
"useTabs": true
}
}
@mioe
mioe / parseCsv.ts
Created January 30, 2023 19:35
simple parse csv via Deno 🦕
import { parse as parseCsv } from 'https://deno.land/[email protected]/encoding/csv.ts'
const data = await parseCsv(await Deno.readTextFile('data.csv'))
const query = await parseCsv(await Deno.readTextFile('query.csv'))
if (import.meta.main) {
const Q = query.flatMap((row) => row)
const INDEX = {
name: 1,
@mioe
mioe / example.sass
Last active August 6, 2022 10:22
example css features 🎸
@import '_reset'
a
text-decoration: none
.dont-touch-me
user-select: none
[class*=view-]
position: relative
@mioe
mioe / _reset.sass
Last active August 29, 2022 18:23
sass - reset styles 🐣️
/* box sizing rules */
*,
*::before,
*::after
box-sizing: border-box
/* remove default padding */
ul,
ol
padding: 0
@mioe
mioe / .editorconfig
Last active May 6, 2023 11:36
my editorconfig properties
root = true
# set default settings
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = tab
indent_size = 2
trim_trailing_whitespace = true