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
{ | |
"info": { | |
"_postman_id": "c37aa390-aa58-48bc-9e53-8716daff537a", | |
"name": "Auth", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | |
"_exporter_id": "34921941" | |
}, | |
"item": [ | |
{ | |
"name": "User Registration", |
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
{ | |
"info": { | |
"_postman_id": "your-postman-id", | |
"name": "Procurement API", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"variable": [ | |
{ | |
"key": "base_url", | |
"value": "http://localhost:3000" |
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
const express = require("express"); | |
const fs = require("fs"); | |
const path = require("path"); | |
const multer = require("multer"); | |
const { v4: uuidv4 } = require("uuid"); | |
const bcrypt = require("bcrypt"); | |
const jwt = require("jsonwebtoken"); | |
const cors = require("cors"); | |
const app = express(); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<definitions name="CalculatorService" | |
targetNamespace="http://www.examples.com/wsdl/CalculatorService.wsdl" | |
xmlns="http://schemas.xmlsoap.org/wsdl/" | |
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | |
xmlns:tns="http://www.examples.com/wsdl/CalculatorService.wsdl" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<message name="AddRequest"> | |
<part name="a" type="xsd:int"/> |
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
/// Gauge chart example, where the data does not cover a full revolution in the | |
/// chart. | |
/// Sample data type. | |
class GaugeSegment { | |
final String segment; | |
final double size; | |
final Color color; | |
final Icon icon; |
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
/// Loop through RecentTransaction to perform specific function | |
void searchTransaction(Transaction transaction, void Function(int i, int j) function) { | |
for (var i = 0; i < recentTransactions!.dailyTransactions!.length; i++) { | |
DailyTransaction dailyTransaction = recentTransactions!.dailyTransactions![i]; | |
for (var j = 0; j < dailyTransaction.transactions!.length; j++) { | |
Transaction trx = dailyTransaction.transactions![j]; | |
if (trx.id == transaction.id) { | |
function(i, j); | |
} | |
} |
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:io'; | |
import 'package:device_info_plus/device_info_plus.dart'; | |
class DeviceInfoUtils { | |
final DeviceInfoPlugin deviceInfo = DeviceInfoPlugin(); | |
/// Info available for both iOS & Android OS | |
String? deviceId; | |
String? deviceName; |
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
AnimatedPadding( | |
duration: Duration(milliseconds: 300), | |
padding: EdgeInsets.only(top: 80), | |
child: GestureDetector( | |
onTap: this.onTap, | |
child: Padding( | |
padding: EdgeInsets.symmetric(horizontal: 16.0), | |
child: Container( | |
width: double.infinity, | |
height: double.infinity, |
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
extension CapExtension on String { | |
//first letter only | |
String get inCaps => '${this[0].toUpperCase()}${this.substring(1)}'; | |
//all letter in string | |
String get allInCaps => this.toUpperCase(); | |
//first letter for each word in a string | |
String get titleCase => this | |
.split(' ') | |
.map((word) => word[0].toUpperCase() + word.substring(1)) | |
.join(' '); |
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
Akif Hensem |