Skip to content

Instantly share code, notes, and snippets.

View thenasim's full-sized avatar
🔥
Fire in a keyboard

Nasim Uddin thenasim

🔥
Fire in a keyboard
  • Prime Tech Solutions Ltd.
  • Dhaka, Bangladesh
  • 01:49 (UTC +06:00)
  • X @_thenasim_
View GitHub Profile
@thenasim
thenasim / _screenshot.md
Created January 9, 2024 10:51 — forked from kamilogorek/_screenshot.md
Clutter-free VS Code Setup
image
using Oracle.ManagedDataAccess.Client;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OracleConn
{
-- CATEGORY TABLE
INSERT INTO category VALUES('ca-1', 'Fruits and Vegetables', GETDATE())
INSERT INTO category VALUES('ca-2', 'Meat and Fish', GETDATE())
INSERT INTO category VALUES('ca-3', 'Cooking', GETDATE())
INSERT INTO category VALUES('ca-4', 'Beverages', GETDATE())
INSERT INTO category VALUES('ca-5', 'Home and Cleaning', GETDATE())
INSERT INTO category VALUES('ca-6', 'Pest Control', GETDATE())
INSERT INTO category VALUES('ca-7', 'Office Products', GETDATE())
INSERT INTO category VALUES('ca-8', 'Beauty Products', GETDATE())
INSERT INTO category VALUES('ca-9', 'Health Products', GETDATE())
DROP TABLE logins
DROP TABLE sales
DROP TABLE products
DROP TABLE category
DROP TABLE employee
DROP TABLE users
---------- CREATE TABLES ----------
@thenasim
thenasim / mongodb_cheat_sheet.md
Created September 28, 2020 16:25 — forked from bradtraversy/mongodb_cheat_sheet.md
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <math.h>
#include <ctime>
#include <cstdlib>
#include <iostream>
@thenasim
thenasim / randomizeArray.js
Last active November 20, 2020 11:09
Generate randomized new array from a given array
// normal version
const random = ([...arr]) => {
let rand;
for (let i = 0; i < arr.length; i++) {
rand = Math.floor(Math.random() * (arr.length - i) + i);
[arr[i], arr[rand]] = [arr[rand], arr[i]];
}
@thenasim
thenasim / diamond.js
Created July 1, 2019 08:41
Diamond shape with Javascript
let limit = 15; // Must be odd number
let output = '';
let middle = Math.floor(limit/2); // middle index of the limit
let indexes = []; // Indexes of where to start outputing X
let show; // how many X will be shown
let __i = 0; // to access the indexes
function log(o) {
console.log(o);
}