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, { useState, useEffect } from 'react'; | |
import { View, Text, TextInput, Button } from 'react-native'; | |
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; | |
import { NavigationContainer } from '@react-navigation/native'; | |
import { Ionicons } from '@expo/vector-icons'; | |
import { Provider as PaperProvider } from 'react-native-paper'; | |
import axios from 'axios'; | |
import nodemailer from 'nodemailer'; | |
const Tab = createBottomTabNavigator(); |
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
public class WebSocketConnectionManager | |
{ | |
private ConcurrentDictionary<string, WebSocket> _socketConnection= new ConcurrentDictionary<string, WebSocket>(); | |
public void AddSocket(WebSocket socket) | |
{ | |
string socketId = CreateConnectionId(); | |
while (!_socketConnection.TryAdd(socketId, socket)) | |
{ | |
socketId = CreateConnectionId(); |
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
using System; | |
using System.Drawing; | |
using System.Collections; | |
using System.ComponentModel; | |
using System.Windows.Forms; | |
using System.Data; | |
using System.Text; | |
using SecuGen.FDxSDKPro.Windows; | |
namespace Pos |
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
//MISCELLENIOUS METHODS | |
public static void AddBatchItems(string batchno, decimal principalAmount, decimal interestAmount, Guid customeraccountid, Guid loanproductid) | |
{ | |
using (var db = new ApplicationDbContext()) | |
{ | |
var TheBatch = db.Batch.Where(s => s.BatchNo == batchno).FirstOrDefault(); | |
var transaction = new BatchItems | |
{ |
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 java.util.Random; | |
import java.util.Arrays; | |
public class LinearArray | |
{ | |
private int[] data; // array of values | |
private static final Random generator = new Random(); | |
public LinearArray( int size ) | |
{ | |
data = new int[ size ]; | |
for ( int i = 0; i < size; i++ ) |
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
//////////// | |
public class StudentViewModel | |
{ | |
public string name { get; set; } | |
public int age { get; set; } | |
} | |
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
public class TestController : ApiController | |
{ | |
[HttpGet] | |
public IEnumerable<Student> Students() | |
{ | |
return StudentCrud.GetStudents(); | |
} | |
} |
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
public class TestController : ApiController | |
{ | |
public IEnumerable<Student> Students() | |
{ | |
return StudentCrud.GetStudents(); | |
} | |
} |
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
public class Student | |
{ | |
public Guid Id { get; set; } | |
public string Name { get; set; } | |
public int Marks { get; set; } | |
} | |
/////// | |
public class StudentCrud |