View gitlab-ci-exit-process.yml
This file contains 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
check: | |
stage: verify | |
script: | |
- exit 1 | |
rules: | |
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != "develop" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH |
View download-tarball.js
This file contains 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
download(TAR_URL, FILE_NAME, { | |
headers: { | |
Authorization: `Basic ${Buffer.from(`${USERNAME}:${PAT}`).toString('base64')}`, | |
}, | |
}).then((r) => { | |
console.log(r) | |
}) |
View config.js
This file contains 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
export default { | |
build:{ | |
output:"./" | |
} | |
} |
View setup.ts
This file contains 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 "@testing-library/jest-dom"; | |
import { setProjectAnnotations } from "@storybook/react"; | |
import "jest-styled-components"; | |
import { decorators } from "../../.storybook/withEditor"; | |
setProjectAnnotations({ decorators }); |
View snapshot.test.tsx
This file contains 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 { join } from "path"; | |
import type { Meta, StoryFn } from "@storybook/react"; | |
import { composeStories } from "@storybook/react"; | |
import { render } from "@testing-library/react"; | |
import glob from "glob"; | |
import { toMatchImageSnapshot } from "jest-image-snapshot"; | |
import { chromium, type Browser, type Page } from "playwright"; | |
import { afterAll, beforeAll, expect, describe, it, vi } from "vitest"; |
View opentemp.sh
This file contains 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
# This opentemp function is designed to help developers quickly create and switch to a new temporary branch for debugging and development purposes, without interfering with the existing files or branches. It automates the process of navigating to the ~/code/temp/ directory, checking for uncommitted changes, committing them if necessary, and creating a new branch with a user-defined or timestamp-based name. | |
# Here's a brief overview of how to use the opentemp function: | |
# Add the opentemp function to your ~/.zshrc file and save it. This ensures that the function is loaded every time you start a new terminal session. | |
# Run source ~/.zshrc to apply the new configuration immediately without restarting the terminal. | |
# To create a new temporary branch for debugging or development, simply run the opentemp command followed by an optional task name. For example: | |
# opentemp (without a task name) will create a new branch with a timestamp-based name, such as "temp-debug-20230405-143000". | |
# opentemp my-feature (with a ta |
View skia-shader
This file contains 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 { useEffect, type FC } from "react"; | |
import { Button, Dimensions, ScrollView, Text, View } from "react-native"; | |
import type { SharedValue } from "react-native-reanimated"; | |
import { Easing, Extrapolate, interpolate, useDerivedValue, useSharedValue, withDecay, withDelay, withRepeat, withTiming } from "react-native-reanimated"; | |
import { SafeAreaView } from "react-native-safe-area-context"; | |
import { Blur, Canvas, DisplacementMap, Fill, FractalNoise, Group, LinearGradient, Rect, RoundedRect, Shadow, Turbulence, Vertices, vec } from "@shopify/react-native-skia"; | |
const { width } = Dimensions.get("window"); |
View Images Dimension Testing.
This file contains 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
const images = [ | |
'https://ipfs.xlog.app/ipfs/bafkreib2uqok2rtc6rufnt4icqexi5fi3feqty3t2ejbcy4folb5iikjqm', | |
'https://ipfs.xlog.app/ipfs/bafkreicviikvuogo4bfmgjwi7trtsgzd24cohee6wkaqr7c6hqgkz5pexi', | |
'https://ipfs.xlog.app/ipfs/bafkreia4vkm6huitzkc4dpvhm54madub4752wnv2tqdelulmawgohc7ndq', | |
'https://ipfs.xlog.app/ipfs/bafkreic223ab6snnkcms4wepmwfa5m4ged2gresrgajyrqykbygyqikxiy', | |
'https://ipfs.xlog.app/ipfs/bafkreihrcscwhxl3zaswj4pffmoq6d23iqebviihqswzwree7hk5s7qmly', | |
'https://ipfs.xlog.app/ipfs/bafkreihuid4goghknzt5d2yjqlzatxapmxjrxdb54hjtcksphdndanqhyq', | |
'https://ipfs.xlog.app/ipfs/bafkreicblcxjux32ofvi6sil3utix5g52yxfhxadds2otmy2mqzr7gqqui', | |
'https://ipfs.xlog.app/ipfs/bafkreihigfyb24qcbza3bigxbbmxq3izevzg5scy7dwybwtwzj4ubycuei' |