Skip to content

Instantly share code, notes, and snippets.

View arn-ob's full-sized avatar
☠️
__worker__

Arnob arn-ob

☠️
__worker__
View GitHub Profile
<?php
$token = '';
if(isset($_REQUEST['hub_challenge'])){
$challenge = $_REQUEST['hub_challenge'];
$token = $_REQUEST['hub_verify_token'];
}
if($token === "ar"){
echo $challenge;
}
@arn-ob
arn-ob / chatbot.php
Created January 16, 2019 16:09
Chatbot Facebook using PHP
<?php
$token = '';
if(isset($_REQUEST['hub_challenge'])){
$challenge = $_REQUEST['hub_challenge'];
$token = $_REQUEST['hub_verify_token'];
}
if($token === "ar"){
echo $challenge;
}
@arn-ob
arn-ob / current_sence.ino
Last active August 2, 2021 10:11
Current Sence Utpl Bhaiya Code
#include <SoftwareSerial.h>
const byte rxPin = 2;
const byte txPin = 3;
SoftwareSerial SIM900(rxPin, txPin);
char msg;
float voltageB = 0;
float amp = 0;
@arn-ob
arn-ob / basic_gsm.ino
Created December 11, 2018 14:07
Basic GSM and Arduino Connection
#include <SoftwareSerial.h>
const byte rxPin = 2;
const byte txPin = 3;
SoftwareSerial SIM900(rxPin, txPin);
char msg;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
@arn-ob
arn-ob / try.sql
Created December 4, 2018 14:19
MySQL Store Procedure
CREATE PROCEDURE `post`(IN `p_id` VARCHAR(50),
IN `name` VARCHAR(50),
IN `kha_name` VARCHAR(50),
IN `kha_type` VARCHAR(50),
IN `kha_details` VARCHAR(50),
IN `kha_price` VARCHAR(50),
IN `kha_qnty` VARCHAR(50),
IN `kha_img1` VARCHAR(50),
IN `kha_img2` VARCHAR(50),
IN `kha_img3` VARCHAR(50),
@arn-ob
arn-ob / WebServerBasedBoxProcess.ino
Created November 11, 2018 17:57
Ethernet based web server and based on request it manage box and taka managing process
/*
BoxAndTaka Processing
created 18 Dec 2009
For HVL (Unilever Bangladesh Project)
by Arnob Almazee
ProjectCity TecTeam
*/
#include <SPI.h>
#include <Ethernet.h>
@arn-ob
arn-ob / selfProtect.ino
Last active December 4, 2018 12:31
GPS based tracking and location sending using SMS
// written by stupid@arnob
#include <SoftwareSerial.h>
#include <TinyGPS.h>
SoftwareSerial SIM900(2, 3); // RX, TX
TinyGPS gps;
SoftwareSerial ss(6, 7);// RX, TX
@arn-ob
arn-ob / gps.php
Last active November 10, 2018 06:36
Sending GPS data to server using ESP8266 nodemcu
<?php
date_default_timezone_set("Asia/Dhaka");
header_remove('Access-Control-Allow-Origin');
header('Access-Control-Allow-Origin: *');
$servername = "";
$username = "";;
$password = "";
$dbname = "";
@arn-ob
arn-ob / bottolDisposer.ino
Last active September 6, 2021 17:45
Shaibal Final Project
#include <Servo.h>
#include "HX711.h"
#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 32, en = 30, d4 = 28, d5 = 26, d6 = 24, d7 = 22;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
// Weight
@arn-ob
arn-ob / upload.php
Created October 16, 2018 13:25
File upload like Firebase. Store to the online Host file Dir
<?php
$target_dir = "uploads/";
$filename = $_POST["filename"];
$target_file = $target_dir . $filename;