This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once "../includes/config.php"; | |
if($_SERVER['REQUEST_METHOD'] == "POST"){ | |
$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']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
char input[]="9+8*2/6"; | |
char* head = input; | |
void expr(); | |
void match(char ch); | |
void exprPrime(); | |
void term(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<GL/glut.h> | |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<stdbool.h> | |
#include<limits.h> | |
#include<unistd.h> | |
#include<time.h> | |
#include<math.h> | |
#include<cstring> | |
#include<iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <sstream> | |
#include <cstring> | |
#include <boost/algorithm/string.hpp> // for detail: https://www.boost.org/ | |
using namespace std; | |
// Structure for tokens |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en" | |
style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;"> | |
<head> | |
<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> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Running pre-install script..." | |
# Update the system | |
sudo apt update -y | |
# Install required packages for building MQTT libraries and Mosquitto broker | |
sudo apt install -y build-essential gcc make cmake cmake-gui cmake-curses-gui libssl-dev doxygen graphviz git libusb-1.0-0-dev libsystemd0 libsystemd-dev mosquitto python3 python3-pip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Sayom Shakib", | |
"titleLogo": null, | |
"favicon": null, | |
"nav": { | |
"navMenus": [ | |
{ | |
"name": "Home", | |
"page": "home" | |
}, |