Skip to content

Instantly share code, notes, and snippets.

View cyrilCodePro's full-sized avatar
🎯
Focusing

TUMBO CYRIL cyrilCodePro

🎯
Focusing
View GitHub Profile
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();
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();
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
//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
{
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++ )
////////////
public class StudentViewModel
{
public string name { get; set; }
public int age { get; set; }
}
public class TestController : ApiController
{
[HttpGet]
public IEnumerable<Student> Students()
{
return StudentCrud.GetStudents();
}
}
public class TestController : ApiController
{
public IEnumerable<Student> Students()
{
return StudentCrud.GetStudents();
}
}
public class Student
{
public Guid Id { get; set; }
public string Name { get; set; }
public int Marks { get; set; }
}
///////
public class StudentCrud