Skip to content

Instantly share code, notes, and snippets.

View abrarShariar's full-sized avatar
🎯
Focusing

Abrar Shariar abrarShariar

🎯
Focusing
View GitHub Profile
@abrarShariar
abrarShariar / flash.cpp
Created June 11, 2018 04:27
Symbol of flash with line and ploygon (COMPUTER GRAPHICS)
#include <GL/gl.h>
#include <GL/glut.h>
void display(void){
/* clear all pixels */
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0, 0.75, 0.0);//(R,G,B)
@abrarShariar
abrarShariar / lab_practice.sql
Created May 29, 2018 06:27
ADBMS - lab practice
select * from emp where emp.ename = 'ALLEN';
select * from dept;
select * from salgrade;
/*1)
select
emp.empno, emp.ename, emp.job, dept.loc
from
emp
join dept
#include <GL/gl.h>
#include <GL/glut.h>
void display(void)
{
/* clear all pixels */
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0, 1.0, 0.0);//(R,G,B)
@abrarShariar
abrarShariar / month_generator.js
Created March 13, 2018 11:27
month generator
const month = new Array();
month[0] = "Jan";
month[1] = "Feb";
month[2] = "March";
month[3] = "April";
month[4] = "May";
month[5] = "June";
month[6] = "July";
month[7] = "Aug";
month[8] = "Sep";
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@abrarShariar
abrarShariar / lab_task_03.cs
Created July 9, 2017 10:30
Lab task 03 for C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
@abrarShariar
abrarShariar / zf_script
Last active July 8, 2017 02:27
script for build and push - zeference
## for build and tag
npm run build:prod
## which is similar to
node --max_old_space_size=2048 ./node_modules/.bin/ng build --prod --env=prod
## if build successful
git tag -f build-passed
git push --tags -f
@abrarShariar
abrarShariar / search.html
Created May 14, 2017 20:18
Asynchronous search with fetch
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Search with JS</title>
</head>
<body>
@abrarShariar
abrarShariar / lcs.cpp
Created November 23, 2016 03:18
LCS as per done in LAB
#include<iostream>
using namespace std;
void LCS_Length(char*,char*,int,int);
int c[100][100];
string b[100][100];
void Print_LCS(string b[][100],string x,int i,int j){
//cout<<i<<" "<<j;
@abrarShariar
abrarShariar / mcm.cpp
Created November 16, 2016 04:33
lab work algo MCM
#include<iostream>
using namespace std;
void Matrix_Chain_Order(int*,int);
int S[100][100];
void print_s(int i,int j){
if(i == j){
cout<<"A"<<i;
}else{