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
| <div | |
| class={`flex aspect-square w-full grow flex-col items-center justify-center rounded-3xl ${ | |
| props.useBorder ? 'border-4 border-gray-200' : '' | |
| } p-5 max-md:mt-10 max-md:max-w-full`} | |
| > | |
| <Lottie | |
| path={props.lottie} | |
| loop={props.loop} | |
| speed={props.speed} | |
| /> |
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
| # 1.install gource using HomeBrew | |
| $ brew install gource | |
| # 2.install avconv | |
| git clone git://git.libav.org/libav.git | |
| cd libav | |
| # it will take 3-5 minutes to complie, be patient. | |
| ./configure --disable-yasm | |
| make && make install |
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 { component$, type Signal, type JSXOutput } from "@builder.io/qwik"; | |
| export function Show(props: { | |
| when: boolean; | |
| "bind:when": Signal<boolean | undefined>; | |
| children?: JSXOutput; | |
| else?: JSXOutput; | |
| }) { | |
| if (props["bind:when"] !== undefined) { | |
| return props["bind:when"].value ? props.children : props.else; |
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
| <BlogIndex> <-- readDir | |
| <RefreshButton /> | |
| <Toggle> | |
| <ArticlePreview filename="something.mdx"> <-- read file | |
| first 50 chars | |
| </ArticlePreview> | |
| </Toggle> | |
| <Toggle> | |
| <ArticlePreview filename="something.mdx"> <-- read file |
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 { | |
| Slot, | |
| component$, | |
| createContextId, | |
| useContextProvider, | |
| useSignal, | |
| useStore, | |
| type Signal, | |
| } from '@builder.io/qwik'; |
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 { component$, useVisibleTask$, useStore, useSignal, noSerialize } from '@builder.io/qwik'; | |
| import lottie from 'lottie-web'; | |
| import { Options } from './types'; | |
| export interface OptionsProps { | |
| options: Options; | |
| } | |
| export const QwikLottie = component$(({ options }: OptionsProps) => { | |
| const store = useStore({ |
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
| let data = Array.from({ length: 10 }, (_, i) => `item${i + 1}`); | |
| let packageNameCounter = 0; | |
| // Function to group array elements into packages | |
| function groupArrayElements(list, groupSize) { | |
| // Base case: if the list is small enough, return it as a single package | |
| if (list.length <= groupSize) { | |
| return [{ | |
| packageName: 'Pkg' + packageNameCounter++, | |
| items: list |
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
| { | |
| "name": "everything", | |
| "version": "2.0.0", | |
| "description": "npm install undefined", | |
| "main": "index.js", | |
| "contributors": [ | |
| "PatrickJS <github@patrickjs.com>", | |
| "uncenter <hi@uncenter.dev>" | |
| ], | |
| "keywords": [ |