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 'dart:async'; | |
import 'dart:html'; | |
class QRReader { | |
bool active = false; | |
VideoElement videoElement; | |
ImageElement imageElement; | |
CanvasImageSource imageSource; | |
CanvasElement canvas; |
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
package service | |
import ( | |
"fmt" | |
"log" | |
"math" | |
"mauappa-go/model" | |
"mauappa-go/repository" | |
) |
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 'package:flutter/material.dart'; | |
class CustomRadio extends StatefulWidget { | |
final List<String> answers; | |
final void Function(String value) onValueChanged; | |
CustomRadio({this.answers, this.onValueChanged}) : super(); | |
@override | |
createState() { |
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 'package:flutter/material.dart'; | |
class CustomCard extends StatelessWidget { | |
final Widget body; | |
final String imageAsset; | |
final String buttonText; | |
final String buttonImageAsset; | |
final void Function() onPressed; | |
CustomCard({ |
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 'dart:math'; | |
import 'package:cloud_firestore/cloud_firestore.dart'; | |
import 'package:flutter_base/core/apis/interfaces/survey_api.dart'; | |
import 'package:flutter_base/core/models/question.dart'; | |
import 'package:flutter_base/core/models/reply.dart'; | |
class SurveyImpl extends SurveyApi { | |
@override | |
Future<List<Question>> getRandomQuestions(int count) async { |
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
package service | |
import ( | |
"log" | |
"mauappa-go/repository/firestore" | |
"mauappa-go/util" | |
"strconv" | |
"testing" | |
"time" |
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, { Component, Fragment } from 'react'; | |
import { | |
SafeAreaView, View, ActivityIndicator, StyleSheet, Platform | |
} from 'react-native'; | |
import { Text } from 'react-native-elements'; | |
import Carousel from 'react-native-snap-carousel'; | |
import moment from 'moment'; | |
import { bindActionCreators } from 'redux'; | |
import { connect } from 'react-redux'; | |
import { Auth } from 'aws-amplify'; |
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, { Component } from 'react'; | |
import { | |
Text, TouchableOpacity, View, StyleSheet | |
} from 'react-native'; | |
import Icon from 'react-native-vector-icons/FontAwesome5'; | |
import LinearGradient from 'react-native-linear-gradient'; | |
import { | |
Fonts, Colors, Styles, Metrics | |
} from '../../themes'; |
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
<template> | |
<div :class="topContainerClasses"> | |
<div | |
v-click-outside="clickedOutside" | |
:tabindex="dropdownOptions && dropdownOptions.tabindex ? dropdownOptions.tabindex : 0" | |
:class="['vti__dropdown', { open: open }]" | |
@keydown="keyboardNav" | |
@click="toggleDropdown" | |
@keydown.esc="reset" | |
> |
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 * as React from 'react' | |
import * as NotificationSystem from 'react-notification-system' | |
import { Message } from 'semantic-ui-react' | |
import { AsyncError } from '../../models/async.models' | |
import { I18N } from '../../i18n'; | |
export interface NotificationConfig { | |
position?: 'tr' | 'tl' | 'tc' | 'br' | 'bl' | 'bc' | |
delay?: number |