Skip to content

Instantly share code, notes, and snippets.

@0xle0ne
0xle0ne / LinearGradient.js
Created November 10, 2017 14:45
LinearGradient expo compatibility with react-native-web
import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
const propTypes = {
colors: PropTypes.arrayOf(PropTypes.string),
start: PropTypes.arrayOf(PropTypes.number),
end: PropTypes.arrayOf(PropTypes.number),
style: View.propTypes.style,
children: PropTypes.oneOfType([
@0xle0ne
0xle0ne / nanocl-install.sh
Created September 5, 2025 16:26
Nanocl install script
#!/bin/sh
set -eu
OWNER_REPO="next-hat/nanocl"
API_URL="https://api.github.com/repos/$OWNER_REPO/releases/latest"
INSTALL_ROOT="$HOME/.nanocl"
ENV_FILE="$INSTALL_ROOT/env"
WRAPPER_MARK="# Added by Nanocl installer"
say() { printf '%s\n' "$*"; }