Skip to content

Instantly share code, notes, and snippets.

View shamiul94's full-sized avatar
💭
How you doin?

Shamiul Hasan shamiul94

💭
How you doin?
View GitHub Profile
// C Program to convert string
// into integer using for loop
#include <stdio.h>
#include <string.h>
int main()
{
char* str = "4213\0";
int num = 0;
[
{
"Task_Name": "sentenceMatching",
"Target_Index": "",
"Tasks":
[
{
"bangla_sentence": "এমন জীবন গঠন করো, যাতে মৃত্যুশয্যায় জীবনের দিকে তাকিয়ে স্মিত হতে পারো। ",
"english_sentence": "Lead a life you can look back at and smile at your death bed"
[
[
"Task_Name": "sentenceMatching",
"Target_Index": "",
"Tasks":
[
{
"bangla_sentence": "এমন জীবন গঠন করো, যাতে মৃত্যুশয্যায় জীবনের দিকে তাকিয়ে স্মিত হতে পারো। ",
"english_sentence": "Lead a life you can look back at and smile at your death bed"
@shamiul94
shamiul94 / How to install opengl in ubuntu.txt
Last active November 15, 2024 21:28
How to install opengl in ubuntu
What Is OpenGL?
OpenGL is a Graphics rendering API which is operating system independent, window system independent and has high-quality color images composed of geometric and image primitives.
OpenGL APIs can use following …
Gl
OpenGL API implementation (http://www.opengl.org)
Glu
OpenGL Utility
Glut – GLUT (OpenGL Utility Toolkit) – Glut is portable windowing API and it is not officially part of OpenGL.
OpenGL Utility Toolkit (http://www.opengl.org/resources/libraries/glut/)
cmake_minimum_required(VERSION 3.10)
project(OpenGLLinuxTest)
add_executable(OpenGLLinuxTest1 main.cpp ) # which files should produce executables
target_link_libraries(OpenGLLinuxTest1 -lglut -lGLU -lGL)
#include<bits/stdc++.h>
#include <windows.h>
#include <glut.h>
#define pi (2*acos(0.0))
using namespace std;
double cameraHeight;
/***************2-Opt best improve start***********/
void TwoOptHeuristicBestImprovement(vector<int> vec) {
int ii, jj;
Tour.clear();
memset(Vis, 0, sizeof(Vis));
Tour = vec;
while (true) {
double Curr = Cost(Tour);
# LD_LIBRARY_PATH
OTCL_LIB=/home/shamiul93/ns-allinone-2.35/otcl-1.14/
NS2_LIB=/home/shamiul93/ns-allinone-2.35/lib/
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/home/shamiul93/ns-allinone-2.35/tcl8.5.10/library/
USR_LIB=/usr/lib/
\documentclass[]{book}
\usepackage{lipsum}
\usepackage{color}
\usepackage{graphicx}
\title{\textit{Introduction to \LaTeX}}
\author{\textit{Shamiul Hasan Rumman}}
git init
git status
git add hello.txt
git commit -m"hskdfgks"
git add --all
git diff
git dif --cached