Skip to content

Instantly share code, notes, and snippets.

View avijit1258's full-sized avatar

Avijit Bhattacharjee avijit1258

View GitHub Profile
@avijit1258
avijit1258 / OrganizeFiles.sh
Created July 13, 2017 18:00 — forked from towfiqpiash/OrganizeFiles.sh
Run this shell script to organize files into separate folders
#!/bin/bash
folders='Compressed Documents Images Music Programs Videos'
ext_comp="*.zip *.tar.gz"
ext_doc="*.htm* *.php *.txt *.css *.doc* *.pdf *.PDF *.ppt* *.js"
ext_img="*.jp*g *.JPG *.png *.gif"
ext_music="*.mp3 *.aac *.wma"
ext_progrm="*.deb *.exe *.run"
ext_vid="*.mp4 *.mkv *.flv *.avi *.webm *.wmv"
@avijit1258
avijit1258 / eloquent.md
Created April 14, 2016 07:09 — forked from msurguy/eloquent.md
Laravel 4 Eloquent Cheat Sheet.

Conventions:

Defining Eloquent model (will assume that DB table named is set as plural of class name and primary key named "id"):

class Shop extends Eloquent {}

Using custom table name

protected $table = 'my_shops';

@avijit1258
avijit1258 / transform.java
Created December 16, 2015 08:07 — forked from andars/transform.java
Solution to USACO Training 1.2 Problem "Transformations"
/*
USER: afoote91
PROB: transform
LANG: JAVA
*/
import java.util.*;
import java.lang.*;
import java.io.*;
@avijit1258
avijit1258 / BST_InorderSuccessor_CPP.cpp
Last active September 10, 2015 23:06 — forked from mycodeschool/BST_InorderSuccessor_CPP.cpp
C++ program to find Inorder successor in a BST
/* C++ program to find Inorder successor in a BST */
#include<iostream>
using namespace std;
struct Node {
int data;
struct Node *left;
struct Node *right;
};
//Function to find some data in the tree