Skip to content

Instantly share code, notes, and snippets.

View colinta's full-sized avatar
🏠
Working from home

Colin T.A. Gray colinta

🏠
Working from home
View GitHub Profile
export const Breathe = () => {
const progress = useLoop(
{
duration: 3000,
easing: Easing.inOut(Easing.ease),
},
{ yoyo: true }
);
return (
<Canvas style={styles.container} debug>
import {Canvas, Circle} from "@shopify/react-native-skia";
export const HelloWorld = () => {
const r = 128;
return (
<Canvas style={{ flex: 1 }}>
<Circle r={r} cx={r} cy={r} color="cyan" />
</Canvas>
);
};
import {Skia, SkiaView, useDrawCallback} from "@shopify/react-native-skia";
export const HelloWorld = () => {
const r = 128;
const onDraw = useDrawCallback((canvas) => {
const paint = Skia.Paint();
paint.setAntiAlias(true);
cyan.setColor(Skia.Color("cyan"));
canvas.drawCircle(r, r, r, paint);
});
diff --git a/node_modules/react-native/scripts/react_native_pods.rb b/node_modules/react-native/scripts/react_native_pods.rb
index db9a34a..e95b882 100644
--- a/node_modules/react-native/scripts/react_native_pods.rb
+++ b/node_modules/react-native/scripts/react_native_pods.rb
@@ -165,7 +165,7 @@ def use_react_native_codegen!(spec, options={})
return if ENV['DISABLE_CODEGEN'] == '1'
# The path to react-native (e.g. react_native_path)
- prefix = options[:path] ||= File.join(__dir__, "..")
+ prefix = options[:path] ||= "../../node_modules/react-native"
character = {
'name': 'Catina Turner',
'class': 'Artificer',
'ancestry': 'Reborn (Leonin)',
'background': 'Entertainer',
'speed': 30,
'hit_dice': 8,
'scores': {
"Strength": 8,
"Dexterity": 12,
async function foo() {
console.log('foo');
return 'foo';
}
function bar() {
return new Promise(resolve => {
console.log('bar');
resolve('bar');
});
return (
<View
style={{
flex: 1,
alignItems: "center",
justifyContent: "center",
}}
>
<View
style={{
const render: FunctionComponent<Props> = (props) => {
return (
<View style={{
flex: 1,
flexDirection: "column",
justifyContent: "flex-start",
alignItems: "flex-start",
}}>
<View
style={{
Verifying my Blockstack ID is secured with the address 14qr6rD7oYF4Qz9JMa2637RCc2pCLk9SvZ https://explorer.blockstack.org/address/14qr6rD7oYF4Qz9JMa2637RCc2pCLk9SvZ
@colinta
colinta / dz60.ino
Created November 14, 2018 23:17
Alan's DZ60 keymap in Mechy
#include <Mechy.h>
#include <Mechy/Wiring.h>
#include <Mechy/KeyPress.h>
#include <Mechy/MediaKey.h>
#include <Mechy/GotoLayer.h>
#include <Mechy/TapHold.h>
#include <Mechy/Receiver.h>
#include <Mechy/Hardware/DZ60.h>
#define QWERTY_LAYER 0