Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / .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 / 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 / 143010200006.sql
Created August 7, 2017 21:30
CSE 3110, Lab 4
-- 1
CREATE TABLE `teachers` (
`teacher_id` INT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(50) NOT NULL,
`designation` VARCHAR(50) NOT NULL,
`department` VARCHAR(50) NOT NULL,
`phone_number` INT NOT NULL,
PRIMARY KEY(`teacher_id`)
);
@mmikhan
mmikhan / 143010200006_final_lab.sql
Created August 8, 2017 04:58
Database Management System Lab Final
CREATE DATABASE `dbms`;
USE `dbms`;
-- 1
CREATE TABLE `college`(
`cname` varchar(50),
`state` varchar(10),
`enrollment` INT
);
@mmikhan
mmikhan / tailwind.config.js
Created June 17, 2020 14:12
Tailwind CSS `grid-template-columns: auto-fit; grid-template-columns: auto-fill;` and `grid-template-rows: auto-fit; grid-template-rows: auto-fill;`
module.exports = {
purge: [],
theme: {
extend: {
gridTemplateColumns: {
'auto-fit': 'repeat(auto-fit, minmax(0, 1fr))',
'auto-fill': 'repeat(auto-fill, minmax(0, 1fr))',
},
gridTemplateRows: {
'auto-fit': 'repeat(auto-fit, minmax(0, 1fr))',
@mmikhan
mmikhan / index.py
Created October 31, 2021 23:15
Control traffic LEDs through IR Sensors to dynamically turn green light on or off based on the number of vehicles using Python on Raspberry Pi
from time import sleep
from signal import pause
from gpiozero import LED, MotionSensor
ledNorthRed = LED(21)
ledNorthYellow = LED(20)
ledNorthGreen = LED(16)
ledSouthRed = LED(26)
ledSouthYellow = LED(19)
@mmikhan
mmikhan / settings.json
Last active January 29, 2022 10:46
GitHub Light Default Visual Studio Code settings
{
"editor.fontSize": 13,
"editor.fontFamily": "JetBrains Mono",
"workbench.colorTheme": "GitHub Light Default",
"breadcrumbs.enabled": false,
"editor.codeLens": false,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.fontLigatures": true,
"editor.minimap.enabled": false,