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
Future<String> isHasToken() async { | |
SharedPreferences prefs = await SharedPreferences.getInstance(); | |
return (prefs.getString("apiKey") ?? null); | |
} |
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
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 |
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
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] |
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
//main dashboard | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar(), | |
resizeToAvoidBottomPadding: false, | |
drawer: new Drawer( | |
child:SideDrawer() | |
), |
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 '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) { |
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> | |
<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"> |
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
<html> | |
<head> | |
<style> | |
header { | |
background: red; | |
padding: 10px; | |
text-align: center; | |
font-size: 5vw; | |
position: fixed; | |
width: 100%; |
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
const state = { | |
billing: [], | |
message: '' | |
} | |
const mutations = { | |
addingBilling: (state,item) =>{ | |
state.billing.push(item) | |
}, | |
removeBilling: (state,index) =>{ |
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> | |
<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" /> |
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
<!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> |
NewerOlder