Skip to content

Instantly share code, notes, and snippets.

View zarinmoumitu0176's full-sized avatar

Shanta Akter zarinmoumitu0176

View GitHub Profile
#mydiv {
background-color: lightblue;
width: 200px;
height: 200px
}
@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"""
(async () => {
// logs to just to make sure that stuff is really asynchronous
// setInterval(() => console.log('--'), 200)
function iterWrap(iter) {
return {
take: (n = 100) => {
function* limitedGenerator() {
for(let i = 0; i < n; i++) {
@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')";