Skip to content

Instantly share code, notes, and snippets.

View aaronksaunders's full-sized avatar

Aaron K Saunders aaronksaunders

View GitHub Profile
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@aaronksaunders
aaronksaunders / App.vue
Created October 10, 2021 23:13
ionic vue 3 ionslides in modal
<template>
<ion-page>
<ion-header :translucent="true">
<ion-toolbar>
<ion-title>Blank</ion-title>
</ion-toolbar>
</ion-header>
<ion-content :fullscreen="true">
<ion-button @click="setOpen(true)">SHOW MODAL</ion-button>
@aaronksaunders
aaronksaunders / docker-compose.yml
Last active September 16, 2021 03:01
Docker With Mongo
version: '3'
services:
mongodb:
image: mongo:4.2
environment:
MONGO_INITDB_ROOT_USERNAME: aks_root
MONGO_INITDB_ROOT_PASSWORD: aks_root
ports:
- '27017:27017'
@aaronksaunders
aaronksaunders / 2-MessageListItem.stories.js
Created June 17, 2020 03:13
dev.to - storybook - post
import React from "react";
import { action } from "@storybook/addon-actions";
import MessageListItem from "../components/MessageListItem";
import { IonList } from "@ionic/react";
export default {
title: "MessageListItem",
component: MessageListItem,
};
@aaronksaunders
aaronksaunders / Home.tsx
Created April 23, 2020 02:36
Ionic Native Plugins in ReactJS with Capacitor
import React from "react";
import {
IonContent,
IonHeader,
IonPage,
IonTitle,
IonToolbar,
IonButton,
} from "@ionic/react";
import "./Home.css";
@aaronksaunders
aaronksaunders / App.tsx
Created March 11, 2020 21:15
Typscript version of react-hook-form code with Ionic Framework
import React, { useState } from "react";
import {
IonApp,
IonPage,
IonHeader,
IonContent,
IonItem,
IonLabel,
IonInput,
IonRadioGroup,
@aaronksaunders
aaronksaunders / Markdium-Dart.dart
Created June 19, 2019 16:37
Markdium-Flutter Tabs w/ State Management
void main() => runApp(
ChangeNotifierProvider(
child: TabBarDemo(),
builder: (BuildContext context) {
return CartModel();
},
),
);
@aaronksaunders
aaronksaunders / Markdium-Dart.dart
Created June 19, 2019 16:37
Markdium-Flutter Tabs w/ State Management
class TabBarDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
var count = Provider.of(context).items.length;
@aaronksaunders
aaronksaunders / Markdium-Dart.dart
Created June 19, 2019 16:37
Markdium-Flutter Tabs w/ State Management
RaisedButton(
child: Text("Add Item"),
onPressed: () async {
final form = _formKey.currentState;
form.save();
if (form.validate()) {
Provider.of(context)
.add(new Item(_name, num.parse(_price)));
} else {
print('validate failed');
@aaronksaunders
aaronksaunders / Markdium-Dart.dart
Created June 19, 2019 16:37
Markdium-Flutter Tabs w/ State Management
import 'dart:collection';
import 'package:flutter/material.dart';
class Item {
String name;
num price;
Item(this.name, this.price);
}