Skip to content

Instantly share code, notes, and snippets.

@mmikhan
mmikhan / gpg.md
Created February 21, 2017 12:19 — forked from LauLaman/gpg.md
Use GPG to sign commits using git & PHPStorm

1 - install GPG tools : https://gpgtools.org/

2 - Create new key for your github email

3 - Add key to git on your local machine: git config --global user.signingkey YOURKEY

4 - configure git to sign all commits: git config --global commit.gpgsign true

5 - add to the bottom of ~/.gnupg/gpg.conf:

@mmikhan
mmikhan / .htaccess
Last active December 14, 2015 20:24
Laravel 5.1 Installation on Shared Hosting
#
# Please, add this .htaccess file to your root directory.
# If you've added all the Laravel files to your root directory then everything should be fine.
# Else, you'll require to change the `public/` to your `foldername/public` where the public folder is located
#
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
@mmikhan
mmikhan / materializecssform.css
Created October 19, 2015 20:15
Materialize CSS invalid class label top space fix
input[type=text] + label:after,
input[type=password] + label:after,
input[type=email] + label:after,
input[type=url] + label:after,
input[type=time] + label:after,
input[type=date] + label:after,
input[type=datetime-local] + label:after,
input[type=tel] + label:after,
input[type=number] + label:after,
input[type=search] + label:after,
@mmikhan
mmikhan / area.c
Created March 20, 2015 21:12
Write a small C program to calculate and display the area of a rectangle using the formula mentioned in the example
//
// main.c
// midterm
//
// Created by Md Mazedul Islam Khan on 3/21/15.
// Copyright (c) 2015 Md Mazedul Islam Khan. All rights reserved.
//
#include <stdio.h>
#include <math.h>
@mmikhan
mmikhan / 1.6.c
Created March 20, 2015 20:13
Write a program to output the following multiplication table
//
// main.c
// midterm
//
// Created by Md Mazedul Islam Khan on 3/21/15.
// Copyright (c) 2015 Md Mazedul Islam Khan. All rights reserved.
//
#include <stdio.h>
#include <math.h>
@mmikhan
mmikhan / 1.4.c
Created March 20, 2015 19:54
Write a program that will print the following figure using suitable characters
//
// main.c
// midterm
//
// Created by Md Mazedul Islam Khan on 3/21/15.
// Copyright (c) 2015 Md Mazedul Islam Khan. All rights reserved.
//
#include <stdio.h>
@mmikhan
mmikhan / 1.3.c
Created March 20, 2015 19:36
Write a program using one print statement to print the pattern of asterisks as shown below
//
// main.c
// midterm
//
// Created by Md Mazedul Islam Khan on 3/21/15.
// Copyright (c) 2015 Md Mazedul Islam Khan. All rights reserved.
//
#include <stdio.h>
@mmikhan
mmikhan / 1.2.c
Created March 20, 2015 19:32
Modify the above program to provide border lines to the address.
//
// main.c
// midterm
//
// Created by Md Mazedul Islam Khan on 3/21/15.
// Copyright (c) 2015 Md Mazedul Islam Khan. All rights reserved.
//
#include <stdio.h>
@mmikhan
mmikhan / 1.1.c
Last active February 20, 2022 14:50
Write a program that will print your mailing address in the following form:
//
// main.c
// midterm
//
// Created by Md Mazedul Islam Khan on 3/21/15.
// Copyright (c) 2015 Md Mazedul Islam Khan. All rights reserved.
//
#include <stdio.h>
@mmikhan
mmikhan / evenorodd.c
Created March 20, 2015 18:02
Display the result of a number is even or odd
//
// main.c
// midterm
//
// Created by Md Mazedul Islam Khan on 3/20/15.
// Copyright (c) 2015 Md Mazedul Islam Khan. All rights reserved.
//
#include <stdio.h>