Skip to content

Instantly share code, notes, and snippets.

View merin83's full-sized avatar
☀️
Creating New Things

Md. Estiak Ahmmed (Merin) merin83

☀️
Creating New Things
View GitHub Profile
@merin83
merin83 / gulpfile.js
Created September 2, 2014 09:58
This is a sample gulp file created for learning
var changed = require('gulp-changed');
var imagemin = require('gulp-imagemin');
var minifyHTML = require('gulp-minify-html');
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var concat = require('gulp-concat');
var stripDebug = require('gulp-strip-debug');
var uglify = require('gulp-uglify');
var autoprefix = require('gulp-autoprefixer');
var minifyCSS = require('gulp-minify-css');
@merin83
merin83 / bower.json
Created September 2, 2014 10:00
This is a sample bower file created for learning
{
"name": "my_project",
"version": "0.0.0",
"description": "google chrome plugin",
"main": "dist/jquery.js",
"moduleType": [
"globals"
],
"keywords": [
"photo",

Path

এই মডিউলে কিছু utilities আছে যা file path handle এবং transformation এর কাজে ব্যবহার হয়। প্রায় সব গুলো methods শুধু string transformation perform করে। NB. file system path এর validity check করে না।

Use require('path')
@merin83
merin83 / zshrc.sh
Created July 18, 2016 17:08 — forked from tarex/zshrc.sh
my .zshrc
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#ZSH_THEME="robbyrussell"
# ZSH_THEME="blinks"
# ZSH_THEME ="prose"

Launch the instance and connect with ssh.

##Update the server

sudo yum update

##Install php and MySQL packages

@merin83
merin83 / Deploy your site with git.md
Created July 18, 2016 18:09 — forked from tarex/Deploy your site with git.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@merin83
merin83 / docker-resources.md
Created August 5, 2016 08:08 — forked from rgaidot/docker-resources.md
Docker Resources All In One - A collection of docker online resources
@merin83
merin83 / Dockerfile
Created August 8, 2016 04:24 — forked from tarex/Dockerfile
Node.js Dockerfile based on ubuntu 14.04. This is a little smaller than dockerfile/nodejs which depends on python
# Node.js app Docker file
FROM ubuntu:14.04
MAINTAINER Thom Nichols "[email protected]"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get -qq update
RUN apt-get install -y nodejs npm
@merin83
merin83 / fa-awesome.js
Last active October 9, 2016 09:57
Font Awesome Icon name
var all = [];
jQuery('#icons section').each(function(index, section) {
var id = jQuery(this).attr('id');
jQuery('#'+ id + ' a').each(function(index, iconrow) {
//console.log(jQuery(iconrow).text().replace('Example of ',''));
var text = jQuery(iconrow).text().replace('Example of','');
all.push(text .replace(/^\s+/g, ""));
console.log("array(\'name\' => \'"+ name +"\', \'className\' => \'"+iconElement.className+"\'),");
});
});
Array
(
[0] => Array
(
[name] => american-sign-language-interpreting
[className] => fa fa-american-sign-language-interpreting
)
[1] => Array
(