Skip to content

Instantly share code, notes, and snippets.

View SanowerTamjit's full-sized avatar
🎯
Focusing

Sanower Tamjit SanowerTamjit

🎯
Focusing
  • Mi-C3 International Ltd.
  • Remote
View GitHub Profile
#define NULL_VALUE -99999
#define SUCCESS_VALUE 99999
struct listNode
{
int item ; //will be used to store value
struct node *next ; //will keep address of next node
struct node *prev ; //will keep address of previous node
} ;
struct listNode * list ;
struct listNode * tail ;
#define NULL_VALUE -99999
#define SUCCESS_VALUE 99999
struct nodeList
{
int item ; //for store the value
struct node *next ; //indicate next node
} ;
struct nodeList *list ;
#define ListInitSize 5
#define NullValue -99999
#define SuccessValue 99999
int listMaxSize;
int *list;
int length;
//Initialize List
void initializer_list(){
@SanowerTamjit
SanowerTamjit / FilePathsToJsonTree.java
Last active March 19, 2019 08:39
Random file paths to file tree structure using java
import java.util.*;
public class FilePathsToJsonTree {
public static void main(final String... args) {
List<String> filePaths = new ArrayList<>();
filePaths.add("root/a/1.txt");
filePaths.add("root/");
filePaths.add("root/a/");
#include<stdio.h>
int length;
int list[1000];
void swapHalves(){
int tempList[length];
int mid = length/2;
for(int i = 0; i < length; i++)
@SanowerTamjit
SanowerTamjit / README.md
Created June 2, 2018 03:24 — forked from jonathantneal/README.md
Local SSL websites on macOS Sierra

Local SSL websites on macOS Sierra

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.

NOTE: You may substitute the edit command for nano, vim, or whatever the editor of your choice is. Personally, I forward the edit command to Sublime Text:

alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
@SanowerTamjit
SanowerTamjit / git-server-centos7.md
Created May 24, 2018 06:42
Git Server CentOS 7

Configure Git Server on CentOS 7

Server

$ yum install git-core
$ sudo useradd git
$ sudo passwd git