Skip to content

Instantly share code, notes, and snippets.

View duongddinh's full-sized avatar
👑
#1

Duong Dinh duongddinh

👑
#1
View GitHub Profile
import java.util.Scanner;
import java.lang.Math.*;
class Calc_Mine {
public static void main(String[] args){
boolean c=true;
while (c){
Scanner scn = new Scanner(System.in);
System.out.println("Use loaded data or enter data yourself? (l/m)");
@duongddinh
duongddinh / Neural.java
Last active November 24, 2022 19:58
Simple neural network example written in java
import java.util.Random;
public class Neural {
static double weights[][] = new double[3][1];
static double output[][] = new double[4][1];
public static void main(String args[]) {
double input[][] = {{ 0, 0, 1 }, {1, 1, 1}, { 1,0,1 }, {0,1,1}};
double trueoutput[][] = { {0}, {1}, {1}, {0}};
@duongddinh
duongddinh / PINGenerator.bat
Last active August 7, 2023 08:51
PIN Generator
@echo off
setlocal enableDelayedExpansion
:MAIN
echo Type in name_of_this_program.bat the_number_you_want
echo This program will generate all possible PIN combinations of the amount of number you typed in
echo exapmle: PiGen.bat 4 ---> this program will generate all possible combinations of 4 digits number
echo if "Character was unexpected at this time" is returned, you did not input any number
echo
Set input=%*
if %input%== ( Character )