Skip to content

Instantly share code, notes, and snippets.

At Office

Sayom Shakib nsssayom

At Office
View GitHub Profile
View EmailSignatureDIU.html
<!DOCTYPE html>
<html lang="en"
style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Signature</title>
nsssayom / lexanaluzer.cpp
Created Oct 3, 2021
Simple lexical analyzer for arithmetic expression using C++
View lexanaluzer.cpp
#include <iostream>
#include <string>
#include <sstream>
#include <cstring>
#include <boost/algorithm/string.hpp> // for detail:
using namespace std;
// Structure for tokens
nsssayom / racing_game.cpp
Created Jul 31, 2019
a 2D racing game developed with OpenGL
View racing_game.cpp
View gist:0d35e548606e7a61d1993c85ed180e6e
#include <iostream>
using namespace std;
char input[]="9+8*2/6";
char* head = input;
void expr();
void match(char ch);
void exprPrime();
void term();
nsssayom / signup.php
Created Apr 30, 2017
Sign Up form for Crowd Source Service
View signup.php
require_once "../includes/config.php";
$mconn = mysqli_connect($mq_host, $mq_user, $mq_pass, $mq_data);
$first_name = mysqli_real_escape_string($mconn, $_POST['firstname']);
$last_name = mysqli_real_escape_string($mconn, $_POST['lastname']);
$password_1 = md5(mysqli_real_escape_string($mconn, $_POST['password_1']).$pSalt);
$password_2 = md5(mysqli_real_escape_string($mconn, $_POST['password_2']).$pSalt);
$mail = mysqli_real_escape_string($mconn, $_POST['email']);
nsssayom / feed.php
Created Apr 30, 2017
Newsfeed Web service php
View feed.php
require_once "../includes/config.php";
$mconn = mysqli_connect($mq_host, $mq_user, $mq_pass, $mq_data);
$SQL = "SELECT `id`, `user`, `type`, `image`, `location`, `lat`, `lon`, `time` FROM `incident` ORDER BY `time` DESC LIMIT 0, 10";
$MQ = mysqli_query($mconn, $SQL);
$jq = array();
$uName = array();
if(mysqli_num_rows($MQ) > 0){
while($MFA = mysqli_fetch_array($MQ)){
$uid = $MFA['user'];