some my solutions for type-challenges
๐ฃ
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
| POST / HTTP/1.1 | |
| Host: localhost | |
| User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 | |
| Next-Action: x | |
| Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryx8jO2oVc6SWP3Sad | |
| Content-Length: 459 | |
| ------WebKitFormBoundaryx8jO2oVc6SWP3Sad | |
| Content-Disposition: form-data; name="0" |
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
| /** | |
| * expend version of van-js v0.11.10 | |
| * just for study | |
| * @copyright Tao xin | |
| * @link https://github.com/jorgebucaran/hyperapp | |
| */ | |
| import { BindFunc, ChildDom, DerivedProp, Primitive, Props, State, StateView, TagFunc, default as Van } from "./van" | |
| // This file consistently uses `let` keyword instead of `const` for reducing the bundle size. |
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 */ | |
| import {$$} from 'voby'; | |
| import {useEffect} from '~/hooks'; | |
| /* MAIN */ | |
| const useResizeObserver = ( ref: $<Element | undefined>, fn: ResizeObserverCallback, options: ResizeObserverOptions = {} ): void => { |
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
| html { | |
| --theme-color: #4f46e5; | |
| } | |
| html.dark { | |
| --theme-color: #818cf8; | |
| } | |
| :root { | |
| --sidebar-width: 20rem; |
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
| # enable run remote script | |
| Set-ExecutionPolicy RemoteSigned -Scope CurrentUser | |
| # Scoop configruation | |
| $env:SCOOP = 'E:\scoop' # custom scoop install dir | |
| $env:SCOOP_GLOBAL = 'E:\scoop\apps' # custom scoop app install dir | |
| [environment]::setEnvironmentVariable('SCOOP_GLOBAL', $env:SCOOP_GLOBAL, 'Machine') | |
| [environment]::setEnvironmentVariable('SCOOP', $env:SCOOP, 'User') | |
| Invoke-WebRequest -useb get.scoop.sh | Invoke-Expression |
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 { Browser, chromium, firefox, webkit } from "playwright"; | |
| import { afterAll, beforeAll, describe, it } from "vitest"; | |
| const browserTypes = process.env.ALL_BROWSERS | |
| ? [chromium, firefox, webkit] | |
| : [chromium]; | |
| for (const browserType of browserTypes) { | |
| describe(`browser:${browserType.name()}`, () => { | |
| let browser: Browser; |
Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
People
:bowtie: |
๐ :smile: |
๐ :laughing: |
|---|---|---|
๐ :blush: |
๐ :smiley: |
:relaxed: |
๐ :smirk: |
๐ :heart_eyes: |
๐ :kissing_heart: |
๐ :kissing_closed_eyes: |
๐ณ :flushed: |
๐ :relieved: |
๐ :satisfied: |
๐ :grin: |
๐ :wink: |
๐ :stuck_out_tongue_winking_eye: |
๐ :stuck_out_tongue_closed_eyes: |
๐ :grinning: |
๐ :kissing: |
๐ :kissing_smiling_eyes: |
๐ :stuck_out_tongue: |
NewerOlder