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
| #!/bin/bash | |
| set -e | |
| APP_NAME=${1:-RNStorybookAlpha} | |
| echo "APP_NAME: $APP_NAME" | |
| npm install --global expo-cli | |
| expo init -t expo-template-blank-typescript $APP_NAME | |
| cd $APP_NAME | |
| expo install @storybook/react-native@next \ | |
| @storybook/addon-ondevice-actions@next \ |
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
| #!/bin/bash | |
| npx react-native init RnSBSixAlpha --template react-native-template-typescript; | |
| cd RnSBSixAlpha; | |
| yarn add @storybook/react-native@next \ | |
| @react-native-async-storage/async-storage \ | |
| @storybook/addon-ondevice-actions@next \ | |
| @storybook/addon-ondevice-controls@next \ | |
| @storybook/addon-ondevice-backgrounds@next \ | |
| @storybook/addon-ondevice-notes@next \ |
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 { Svg } from "expo" | |
| import React, { Component, Fragment } from "react" | |
| import { View } from "react-native" | |
| import { PropTypes } from "prop-types" | |
| const getClockCoordinates = ({ radius, ratio }) => { | |
| const coords = [] | |
| for (let i = 1; i <= 12; i++) { | |
| const cx = radius | |
| const cy = radius |
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
| #!/usr/bin/env ruby | |
| require 'set' | |
| user_key_pairs = {} | |
| File.open(ENV['HOME'] + '/.ssh/authorized_keys').each do |public_key| | |
| file_name = public_key.split(' ')[2] + '.pub_key' | |
| key_file = File.new(file_name, 'w') | |
| key_file.puts public_key | |
| key_file.close | |
| key_sig_user = `ssh-keygen -l -f #{file_name}` |
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 base64 | |
| import os | |
| from github import Github, GithubException | |
| def get_sha_for_tag(repository, tag): | |
| """ | |
| Returns a commit PyGithub object for the specified repository and tag. | |
| """ |
NewerOlder