This file contains hidden or 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
| #!/bin/sh | |
| (set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix | |
| basedir=`dirname "$0"` | |
| case `uname` in | |
| *CYGWIN*) basedir=`cygpath -w "$basedir"`;; | |
| esac | |
| NODE_EXE="$basedir/node.exe" |
This file contains hidden or 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 tinycolor from 'tinycolor2'; | |
| export const darken = (color, degree = 10) => { | |
| if (0 <= degree && degree <= 100) { | |
| return tinycolor(color) | |
| .darken(degree) | |
| .toString(); | |
| } else { | |
| throw new RangeError('The color darken degree must be between 0 and 100.'); | |
| } |
This file contains hidden or 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
| module.exports = { | |
| forbidden: [ | |
| { | |
| name: "no-pages-on-pages", | |
| severity: "warn", | |
| comment: "Page MUST not depends on another page.", | |
| from: { path: "^src/pages/([^/]+)/?.+", pathNot: "^src/pages/(routes|paths).ts" }, | |
| to: { path: "^src/pages/(?!$1)/?.+", pathNot: "^src/pages/(routes|paths).ts" }, | |
| }, | |
| { |
This file contains hidden or 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
| did:3:kjzl6cwe1jw147bm53gh2sa5f0azm0e1r4pfvkystrc7lwdtyhus4urew247epv |
This file contains hidden or 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 { createForm } from "effector-forms" | |
| import { __, assoc, pipe, prop } from "ramda" | |
| import { toString } from "some-library" | |
| import { toGas, toSomeAlienStructure } from "some-other-library-or-something" | |
| import { isOk, isJustFine } from "some-validation-library" | |
| /* Shared library code */ | |
| const logged = (value) => { | |
| console.log(value) | |
| return value |
This file contains hidden or 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
| { | |
| "$schema": "vscode://schemas/settings/folder", | |
| "remote.SSH.useLocalServer": false, | |
| "remote.SSH.remotePlatform": { | |
| "akaia.local": "linux", | |
| "akaia": "linux", | |
| "jauv.local": "linux", | |
| "jauv": "linux" | |
| }, | |
| "editor.semanticHighlighting.enabled": true, |
This file contains hidden or 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
| use {dioxus::prelude::*, | |
| dioxus_class::prelude::*, | |
| dioxus_free_icons::{icons::hi_solid_icons::*, Icon}, | |
| regex::Regex, | |
| scraper::{Html, Selector}, | |
| url::*}; | |
| fn use_favicon_url<'a>(cx: Scope<'a, LinkProps<'a>>, url: Url) -> Option<String> { | |
| let body = use_future(cx, (), |_| async move { | |
| reqwest::get(url.to_owned()).await.unwrap().text().await |
This file contains hidden or 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 { isValid as isValidLanguageCode } from "@aleksejdix/ally-bcp47" | |
| import { isError } from "remeda" | |
| import { array, preprocess, string } from "zod" | |
| /** | |
| * All inline localization strings must be written in English. | |
| * Do not change this type, as it enforces the rule. | |
| */ | |
| type SourceLocaleId = "en" |