Skip to content

Instantly share code, notes, and snippets.

View prodhan's full-sized avatar
🏠
Working from home

Ariful Islam prodhan

🏠
Working from home
View GitHub Profile
@prodhan
prodhan / insert-student.php
Created April 2, 2018 04:59
ADN CIW level 3
<?php
include('header.php');
include('connection.php');
if(isset($_POST['submit'])){
$name=$_POST['name'];
$roll=$_POST['roll'];
$phone=$_POST['phone'];
$sql="INSERT INTO info (sname, roll, phone) VALUES('$name', '$roll', '$phone')";
@prodhan
prodhan / barcode_scanner.py
Created March 18, 2018 10:14
Barcode scanner for raspberry pi 3
#!/usr/bin/python
import sys
import requests
import json
api_key = "" #https://upcdatabase.org/
def barcode_reader():
"""Barcode code obtained from 'brechmos'
https://www.raspberrypi.org/forums/viewtopic.php?f=45&t=55100"""
#mydiv {
background-color: lightblue;
width: 200px;
height: 200px
}
@prodhan
prodhan / ForLoop.c
Created May 7, 2017 18:27
This C Program for testing For loop
#include<stdio.h>
#include<conio.h>
int main(){
int i;
for(i=1; i<=10; i++)
{
printf("%d\n", i);
}