Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aaronblondeau
aaronblondeau / surreal_test.ipynb
Created November 3, 2023 22:31
SurrealDB Demo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aaronblondeau
aaronblondeau / Llama2ColorAgent.ipynb
Last active May 23, 2024 06:05
Demos a Llama 2 agent
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aaronblondeau
aaronblondeau / DetailScreen.js
Created August 27, 2017 02:38
Use a Card and Image to display item image
import React, { Component } from 'react';
import {
StyleSheet,
} from 'react-native';
import { Image } from 'react-native';
import { Container, Content, Button, Text, Icon, Card, CardItem, Left, Body } from 'native-base';
import {observer} from 'mobx-react';
import applicationState from '../ApplicationState'
import { NavigationActions } from 'react-navigation'
@aaronblondeau
aaronblondeau / HomeScreen.js
Created August 27, 2017 02:36
Use a List with Thumbnails for each item
import React, { Component } from 'react';
import {
StyleSheet,
} from 'react-native';
import { Spinner, Container, Content, Button, List, ListItem, Text, Thumbnail, Body } from 'native-base';
import {observer} from 'mobx-react';
import applicationState from '../ApplicationState'
@observer
@aaronblondeau
aaronblondeau / DetailScreen.js
Created August 26, 2017 19:16
Item Detail Component
import React, { Component } from 'react';
import {
StyleSheet,
} from 'react-native';
import { Container, Content, Button, Text, Icon } from 'native-base';
import {observer} from 'mobx-react';
import applicationState from '../ApplicationState'
import { NavigationActions } from 'react-navigation'
@aaronblondeau
aaronblondeau / DetailScreen.js
Last active August 26, 2017 19:34
Detail screen refactored to take thing object param and display basic info
import React, { Component } from 'react';
import {
StyleSheet,
} from 'react-native';
import { Container, Content, Button, Text, Icon } from 'native-base';
import {observer} from 'mobx-react';
import applicationState from '../ApplicationState'
import { NavigationActions } from 'react-navigation'
@aaronblondeau
aaronblondeau / HomeScreen.js
Last active August 26, 2017 19:32
HomeScreen component refactored to display a list of items
import React, { Component } from 'react';
import {
StyleSheet,
} from 'react-native';
import { Spinner, Container, Content, Button, List, ListItem, Text } from 'native-base';
import {observer} from 'mobx-react';
import applicationState from '../ApplicationState'
@observer
@aaronblondeau
aaronblondeau / ApplicationState.js
Last active May 1, 2018 21:56
Application state refactored with observables to hold routes and an action to fetch them
import {observable, action} from 'mobx';
class ApplicationState {
@observable things = [];
@observable loading_things = false;
@observable things_error = "";
@action getThings() {
this.things = [];
this.loading_things = true;
@aaronblondeau
aaronblondeau / index.android.js
Last active August 26, 2017 19:18
Index with react-navigation
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React from 'react';
import {
AppRegistry
} from 'react-native';