Skip to content

Instantly share code, notes, and snippets.

souparno majumder souparno

Block or report user

Report or block souparno

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'lrvick/Conque-Shell'
Plugin 'scrooloose/nerdtree'
Plugin 'maksimr/vim-jsbeautify'
View .bshrc
export ANDROID_HOME=/home/bonnie/Android/Sdk
export PATH=${ANDROID_HOME}/tools:${PATH}
export PATH=${ANDROID_HOME}/platform-tools:${PATH}
export PATH=${ANDROID_HOME}/build-toold:${PATH}
export PATH=${ANDROID_HOME}/../android-ndk-r10e:${PATH}
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
souparno / gist:f077cb03f0339514bbcc
Created Nov 28, 2015 — forked from zachstronaut/gist:1184900
Stretch HTML5 canvas to fill window, preserving aspect ratio
View gist:f077cb03f0339514bbcc
* fullscreenify()
* Stretch canvas to size of window.
* Zachary Johnson
* See also:
souparno / building cordova with ant
Created Jul 12, 2015
building cordova with ant
View building cordova with ant
cordova build android -- --ant
souparno / .conf
Created Jun 19, 2015
.conf file to create virtual host
View .conf
<VirtualHost *:80>
ServerName Bonfire.local
DocumentRoot /var/www/Bonfire.local
<Directory /var/www/Bonfire.local>
Options FollowSymLinks
AllowOverride All
View getApp.js
var app = require("express")();
app.get('/user', function(req, res){
res.send(200, { name: 'marcus' });
// In order to reach the app from other modules
// we need to export the express application
module.exports.getApp = app;
View linked list
class LinkedList {
Node last = null;
// function to create the link list
public void createList(int n) {
Node node = new Node();
node.value = n;
souparno / .htaccess file ,subdomain and cakePHP
Created Oct 5, 2014
.htaccess file ,subdomain and cakePHP
View .htaccess file ,subdomain and cakePHP
onsider a domain You have created an appliaction in its root folder.
Now you purchase a new subdomain that is like root/newdomain/ in your server.
When you place your cake application inside this newdomain folder, you will encounter problem regarding
redirect, sometimes you css will be not getting loaded same is with javascript and images.
To overcome this problem create 3 .htaccess files in this order:-
1) .htaccess file in root/newdomain/ folder write this:-
<IfModule mod_rewrite.c>
RewriteEngine on
View mysql relation
FOREIGN KEY (pin_no)
REFERENCES pin(pin_no)
View php mvc
You can’t perform that action at this time.