Skip to content

Instantly share code, notes, and snippets.

View somratcste's full-sized avatar

G.M.Nazmul Hossain (Somrat). somratcste

View GitHub Profile
@somratcste
somratcste / ToDo Application
Created August 26, 2023 11:08
Create a ToDo Application Using SpringBoot
We would like you to create a ToDo REST-Service Application.
Technology: Java, SpringBoot, SpringMVC, Hibernate, JPA, H2 Database
Todo
{
id [mandatory]
name [mandatory]
description
tasks: [
{
<?php
fscanf(STDIN, "%d %d", $number, $time);
for ($i = 1; $i <= $time; $i++) {
$lastDigit = $number % 10 ;
if($lastDigit != 0) {
$number -= 1;
} else {
$number /= 10;
@somratcste
somratcste / startup.sh
Last active April 1, 2018 08:54 — forked from Shipu/startup.sh
Ubuntu Startup (Test on 17.10)
# nginx
# php 7.1 & php 5.6
# mysql 5.7
# node js v9
# docker ( ce )
# composer
# laravel installer
# tld resolver
# oh-my-zsh
# sublime text 3
select pfo.id as order_id, oli.id, oli.qty as required_qty, count(assigned_si.id) as assigned_qty, sum(olivs.confirmed_qty) as confirmed_qty
from (
select *
from orders
where status = 5
) as pfo
inner join order_line_items as oli on pfo.id = oli.order_id
left join (
select *
from stock_items
% G. M. Nazmul Hossain Somrat ASH1201021M
start([3,3,left,0,0]).
% initial state
goal([0,0,right,3,3]).
% final state
% is this state a legal one?
legal(CL,ML,CR,MR) :-
@somratcste
somratcste / gist:3f4f16b8198b49db09410b11947a9875
Created October 15, 2016 02:34
Game Development on Android
How can i start 3d game development on android ?
Which requirement is necessary ?
Is this possible to develope a 3d game in android studio ?
Java with android
C# with windows
Xamarian with c# cross platform (iOS+android+windows)
Unity 3d support android studio ??
Give me a suggestion with the perception of the world??
Or
@somratcste
somratcste / Uva-10533
Created December 24, 2014 15:02
This problem is not accepted ,,,,,, i used seive algorithm but where is the problem i don't understand.
#include <stdio.h>
#include <math.h>
#define MAX 1900000
char prime[MAX];
int digitprime[MAX];
void seive()
{
int i,j,k,temp,update,m,d,sum;
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
unsigned long a,b,count,carry,m;
while(scanf("%ld%ld",&a,&b)==2 && a!=0 && b!= 0)
{
count=0,m=0;
while(a||b )
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int i=0,k=0,n,j=0;
while(cin>>n)
{
if(n<2000)
break;