Skip to content

Instantly share code, notes, and snippets.

View CS6's full-sized avatar
:octocat:
在 Monospace

DaYuan CS6

:octocat:
在 Monospace
  • Our Happy Company
  • ROC ( Taiwan ) Taipei
  • 11:04 (UTC +08:00)
  • X @BIG6_zh
View GitHub Profile
@CS6
CS6 / Pagination.js
Created December 30, 2022 08:48 — forked from drewandre/Pagination.js
Pagination component for use with react-native-snap-carousel
import React from 'react'
import { StyleSheet } from 'react-native'
import Animated, {
Extrapolate,
interpolate,
useAnimatedStyle
} from 'react-native-reanimated'
import { colors, metrics } from 'styles';
function clamp(value, lowerBound, upperBound) {
@polluterofminds
polluterofminds / metadata-generator.js
Created September 15, 2021 17:35
Generate Test NFT Metadata In Bulk
const fs = require("fs");
const faker = require('faker');
const TOTAL = 10_000;
const generateRandomMetadata = () => {
return {
name: faker.name.findName(),
description: faker.lorem.sentences(),
image: faker.image.avatar()
}
@drewandre
drewandre / Pagination.js
Last active December 30, 2022 08:48
Pagination component for use with react-native-snap-carousel
import React from 'react'
import { StyleSheet } from 'react-native'
import Animated, {
Extrapolate,
interpolate,
useAnimatedStyle
} from 'react-native-reanimated'
import { colors, metrics } from 'styles';
function clamp(value, lowerBound, upperBound) {
import React, { useState, useRef, useContext, useCallback } from 'react';
import { Dimensions, View, Animated } from 'react-native';
import { TabView } from 'react-native-tab-view';
import { TabScreen } from './Tab';
import { CustomTabBar } from './TabBar';
import { ThemeContext } from 'react-native-elements';
import { useHeaderHeight } from '@react-navigation/stack';
const AnimatedHeader = ({ style, content }) => {
return <Animated.View style={style}>{content}</Animated.View>;
};
@Craigmoore
Craigmoore / GLTFExporter.js
Created February 27, 2020 22:55
NodeJS adapted version of the ThreeJS GLTFExporter, using npm vblob and canvas, based on mr doobs GLTFExporter
const THREE = require('three');
const { createCanvas, loadImage } = require('canvas')
const { Blob, FileReader } = require('vblob');
// Patch global scope to imitate browser environment.
global.window = global;
global.Blob = Blob;
global.FileReader = FileReader;
global.THREE = THREE;
@bluet
bluet / mariadb-temporal-table.md
Last active July 6, 2020 08:29
Versioning database data with MariaDB Temporal Table
@lukaselmer
lukaselmer / ExportOptions.plist
Created January 11, 2020 21:10
Create a Flutter .apk and .ipa file to upload it to Firebase App Distribution
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>ad-hoc</string>
<key>uploadBitcode</key>
<false/>
<key>uploadSymbols</key>
<true/>
@hhff
hhff / InfoBarTimeDisplay.js
Last active February 1, 2021 18:50
LightOS: InfoBarTimeDisplay
const TimeDisplay = withTime(props => (
<Eink
mode={Modes.DU}
render={memo(() => (
<Layout width={12}>
<UIText variant="copy" align="center" lineHeight={FONT_SIZES['copy']}>
{props.time}
</UIText>
</Layout>
))}
@TunvirRahman
TunvirRahman / ExportOptions.plist
Created December 23, 2019 12:01
ExportOptions.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>compileBitcode</key>
<true/>
<key>destination</key>
<string>export</string>
<key>method</key>
<string>ad-hoc</string>
@rodydavis
rodydavis / flutter_github_ci.yml
Last active February 25, 2024 05:40
Flutter Github Actions Build and Deploy Web to Firebase Hosting, iOS to Testflight, Android to Google Play (fastlane)
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build_web: