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
# Click in the righthand window to make it active then use your arrow | |
# keys to control the spaceship! | |
import turtle | |
import random | |
screen = turtle.Screen() | |
# this assures that the size of the screen will always be 400x400 ... | |
screen.setup(400, 400) |
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 { | |
Connection, | |
PublicKey, | |
Keypair, | |
SystemProgram, | |
Transaction, | |
sendAndConfirmTransaction, | |
} from '@solana/web3.js'; | |
import type {NextApiRequest, NextApiResponse} from 'next'; | |
import {getNodeURL} from '@figment-solana/lib'; |
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
#!/bin/zsh | |
# Put this script in your git repo: /Users/yourusername/yourrepo/delete_old_branches.sh | |
# Create a text file called old_branches.txt, put this in your repo as well: /Users/yourusername/yourrepo/old_branches.txt | |
# In old_branches.txt, put the names of the branches you want to delete. 1 Branch name per line, no commas. | |
# Then run... | |
# cd /Users/yourusername/yourrepo | |
# chmod 755 delete_old_branches.sh | |
# git config --global --add safe.directory /Users/yourusername/yourrepo |
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 type {NextApiRequest, NextApiResponse} from 'next'; | |
import {Keypair} from '@solana/web3.js'; | |
/* | |
* Like with most Web 3 protocols, transactions on Solana happen between accounts. | |
* To create an account, a client generates a keypair which has a public key (or | |
* address, used to identify and lookup an account) and a secret key used to sign | |
* transactions. | |
*/ |
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
let externalComponentName = "YourComponentName" | |
let viewController = YourViewController() | |
registerExternalComponent(externalComponentName, viewController) |
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
// | |
// RNNUtility.m | |
// yourapp | |
// | |
// Created by Christopher Pedersen on 8/5/22. | |
// Copyright © 2022 Super Sweet Co. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <ReactNativeNavigation/ReactNativeNavigation.h> |
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
// | |
// RNNUtility.h | |
// yourapp | |
// | |
// Created by Christopher Pedersen on 8/5/22. | |
// Copyright © 2022 Super Sweet Co. All rights reserved. | |
// | |
#ifndef RNNUtility_h | |
#define RNNUtility_h |
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 "RNNUtility.h" |
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 "AppDelegate.h" | |
//#import <React/RCTBridge.h> | |
//#import <React/RCTBundleURLProvider.h> | |
//#import "RNNCustomViewController.h" | |
//#import <ReactNativeNavigation/ReactNativeNavigation.h> | |
class AppDelegate : RCTBridgeDelegate { |
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 React, { useState } from 'react'; | |
import { | |
View, | |
SafeAreaView, | |
Dimensions, | |
Image, | |
} from 'react-native'; | |
import { GestureDetector, Gesture } from 'react-native-gesture-handler'; | |
import Animated, { | |
useSharedValue, |