View machine.js
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
View App.vue
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
<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> |
View docker-compose.yml
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
version: '3' | |
services: | |
mongodb: | |
image: mongo:4.2 | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: aks_root | |
MONGO_INITDB_ROOT_PASSWORD: aks_root | |
ports: | |
- '27017:27017' |
View 2-MessageListItem.stories.js
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 from "react"; | |
import { action } from "@storybook/addon-actions"; | |
import MessageListItem from "../components/MessageListItem"; | |
import { IonList } from "@ionic/react"; | |
export default { | |
title: "MessageListItem", | |
component: MessageListItem, | |
}; |
View Home.tsx
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 from "react"; | |
import { | |
IonContent, | |
IonHeader, | |
IonPage, | |
IonTitle, | |
IonToolbar, | |
IonButton, | |
} from "@ionic/react"; | |
import "./Home.css"; |
View App.tsx
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 { | |
IonApp, | |
IonPage, | |
IonHeader, | |
IonContent, | |
IonItem, | |
IonLabel, | |
IonInput, | |
IonRadioGroup, |
View Markdium-Dart.dart
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
void main() => runApp( | |
ChangeNotifierProvider( | |
child: TabBarDemo(), | |
builder: (BuildContext context) { | |
return CartModel(); | |
}, | |
), | |
); |
View Markdium-Dart.dart
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
class TabBarDemo extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
var count = Provider.of(context).items.length; |
View Markdium-Dart.dart
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
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'); |
View Markdium-Dart.dart
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 'dart:collection'; | |
import 'package:flutter/material.dart'; | |
class Item { | |
String name; | |
num price; | |
Item(this.name, this.price); | |
} |
NewerOlder