Skip to content

Instantly share code, notes, and snippets.

Future<String> isHasToken() async {
SharedPreferences prefs = await SharedPreferences.getInstance();
return (prefs.getString("apiKey") ?? null);
}
No ktp : 3275 0620 0596 0010
ASCII :
3 = 51 0 = 48 0 = 48 0 = 48
2 = 50 6 = 54 5 = 53 0 = 48
7 = 55 2 = 50 9 = 57 1 = 49
def create
begin
@merchant = Merchant.find_by!(:username => params[:username])
if @merchant
render json: {error: 'duplicate', message: "Username anda sudah terdaftar"}, status: :unprocessable_entity
end
rescue Mongoid::Errors::DocumentNotFound
@merchant = Merchant.new()
@merchant.name = params[:name]
@merchant.username = params[:username]
//main dashboard
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
resizeToAvoidBottomPadding: false,
drawer: new Drawer(
child:SideDrawer()
),
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
class MainBottomBar extends StatelessWidget {
int index;
dynamic changeIndex;
MainBottomBar(this.index, this.changeIndex);
SvgPicture definePic(int i) {
<template>
<Page>
<ActionBar>
<GridLayout width="100%" columns="auto, *">
<!-- <Label text="MENU" @tap="$refs.drawer.nativeView.showDrawer()" col="0"/> -->
<Label class="title" text="Attendance App" align="center" col="1"/>
</GridLayout>
</ActionBar>
<RadSideDrawer ref="drawer">
<html>
<head>
<style>
header {
background: red;
padding: 10px;
text-align: center;
font-size: 5vw;
position: fixed;
width: 100%;
const state = {
billing: [],
message: ''
}
const mutations = {
addingBilling: (state,item) =>{
state.billing.push(item)
},
removeBilling: (state,index) =>{
<template>
<StackLayout>
<ScrollView v-if="!emptyOrder">
<FlexboxLayout flexDirection="column" marginTop="25" marginRight="25" marginLeft="25">
<GridLayout v-for="(order,index) in orderList" marginBottom="15" columns="200,50,50" rows="*,auto">
<Label class="order-name" :text="order.name" row="0" col="0"/>
<TextField keyboardType="number" v-model:value="order.qty" row="0" col="1" hint="Qty" />
<Button text="x" class="delete" ripple="true" @tap="removeOrder(index)" row="0" col="2" />
</GridLayout>
<TextView v-model="message" :hint="hint" />
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>decrypter</title>
<link rel="stylesheet" href="">
</head>
<body>
<div id="encryptResult"></div>