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
| pico-8 cartridge // http://www.pico-8.com | |
| version 16 | |
| __lua__ | |
| -- displays a TV Game Jam title card | |
| -- using code from dw817: https://www.lexaloffle.com/bbs/?tid=31725 | |
| function titlecard() | |
| cls() | |
| bit6to8("/a]a.p.adp.q.q.q.adadp.a/a=..p.quu[3{v1@y@y/bk.{3#y@y@[v{3wuuad/az..pduu3{@y#/by.3{3#y@[3wuea/am..py]/b9.3{yva/ah..px/bw.{3]/bm.3{3#e/ah..{/[email protected]{a/af..6/bl.3{3#/bh.3{3]3{3{3#3{3{y/bd.{3]/bf.3{3#a.....t{3{y/bd.{3{y{3{3]3{3{3w.qdqtuuuuuw3y{3wg-3{3{3{uq5{3{3]/bd.3{3#3{3#3{y{3{3wa....6/bd.3{y/bh.{3/al..p2#e..]3{3{3w.px{3{3{3#3{3{3]3{3]3{3{3{y{3m.....]3{3{3#3{3]3]3{y{3{3{3]3{e/al..[e...d{3]y{y...x{3{3]/bd.3{y{3{3{3]3{3{y.....+{y{3{y{3{3{3#3{3{3#3]3{3w/al..tg....x{3{3wa...+{y{3{3{y{3]/bf.3{3wc....63{3#/be.3{3]/bd.3{3/am..2f...p3{3{3....p5/bl.{3f.....<3{3{3{3]3]3{3{3{3]3{3]3{uqep.a.a.qdud-3a...~3{3wc...d{3{3{3#3{3{3{y{3#3{3{3]3{y.....x{3]3{3{3{3#3{3{3]3{3{3]3{3{3wa....]3{3{y....<3{3..a.p5/bf.{3{y/be.{3wc....p5/bf.{3]3{3{3]/bd.3{3a...p3{3{3{u....{3wc....]3{3{y{3{3]3{3{3{3]3{3{3{3f.....]3{3]3{y/bj.{3{e....-3{3{3{a |
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
| /** | |
| * Sample React Native App | |
| * https://github.com/facebook/react-native | |
| * | |
| * @format | |
| * @flow | |
| */ | |
| import React from 'react'; | |
| import { |
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
| CREATE TABLE `parent` ( | |
| `id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; | |
| CREATE TABLE `child` ( | |
| `id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '', | |
| `parent1Id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL, | |
| `parent2Id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL, | |
| PRIMARY KEY (`id`, `parent1Id`), -- parent field foreign key is part of child primary key |
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 AsyncStorage from '@react-native-community/async-storage'; | |
| const memoryKeyPrefix = '@MemoryStorage:'; | |
| interface MemoryData { | |
| [key: string]: string; | |
| } | |
| export default class AmplifyCommunityAsyncStorage { | |
| static memoryData: MemoryData = {}; |
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
| interface RootStateV0 { | |
| a: { | |
| b: number; | |
| }; | |
| d: { | |
| e: number; | |
| }; | |
| } |
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 { createMigrate } from 'redux-persist'; | |
| import { RootState } from './modules/reducer'; | |
| /* | |
| * Latest version (V3) is simply the currently used redux RootState. | |
| */ | |
| type PersistedRootStateV3 = RootState; | |
| /* |
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 React, { | |
| forwardRef, | |
| FunctionComponent, | |
| PropsWithChildren, | |
| Ref, | |
| } from 'react'; | |
| import { View, Text, ViewProps } from 'react-native'; | |
| /* | |
| * First we create a simple function component which forwards a View ref: |
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
| const foo: any = 42; | |
| if (foo !== undefined && typeof foo !== 'string') { | |
| throw new Error('foo must be a string if defined'); | |
| } | |
| console.log(foo); // foo: any | |
| const bar: unknown = 42; |
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
| const foo = (x: unknown) => { // function(x: unknown): object | null | |
| if (x === null || typeof x !== 'object') { | |
| throw Error(); | |
| } | |
| return x; | |
| }; | |
| const bar = (x: unknown) => { // function(x: unknown): object | |
| if (typeof x !== 'object' || x === null) { | |
| throw Error(); |
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 | |
| if (( $# != 1 )) | |
| then | |
| echo "Usage: $0 <file.c>" | |
| exit 1 | |
| fi |
OlderNewer