This file contains hidden or 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" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mus</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.bundle.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.bundle.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"></script> | |
</head> |
This file contains hidden or 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
import requests | |
import json | |
url = 'http://Your API here' | |
params = {'q': 'ISOW7841FDWER'} | |
headers = {'User-Agent': 'Mozilla/5'} | |
r = requests.get(url, params=params, headers=headers) | |
print(r.text) | |
json = json.loads(r.text) | |
print(json['success']) |
This file contains hidden or 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 <Arduino.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WiFiMulti.h> | |
#include <ESP8266HTTPClient.h> | |
#include <SoftwareSerial.h> | |
// defines pins numbers | |
const int trigPin = 2; //D4 | |
const int echoPin = 0; //D3 |
This file contains hidden or 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 | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Crypt; | |
use App\ListedDevice; | |
use App\Http\Helpers; | |
class ListedDevicesController extends Controller |
This file contains hidden or 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 | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\User; | |
use App\ListedDevice; | |
class DataController extends Controller | |
{ |
This file contains hidden or 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 | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\User; | |
use App\ListedDevice; | |
use Illuminate\Support\Facades\Hash; | |
use Illuminate\Support\Facades\Crypt; |
This file contains hidden or 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 | |
Route::get('/', 'HomeController@index'); | |
Route::get('/login', 'HomeController@loginPage'); | |
Route::post('/login-check', 'HomeController@login'); | |
Route::get('/register', 'HomeController@register'); | |
Route::post('/register-check', 'HomeController@create'); | |
Route::post('/logout', 'HomeController@logout'); | |
Route::get('/list-device', 'ListedDevicesController@index'); | |
Route::post('/list-device-add', 'ListedDevicesController@create'); |
This file contains hidden or 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 | |
while($res2 = mysqli_fetch_array($result)) | |
{ | |
// echo $res2['branchid'];echo $res2['branchid2']; | |
$queryBranch1 = "select * from staffinfosalary where department = '".$res2['branchid']."'"; | |
$queryBranch2 = "select * from staffinfosalary where department = '".$res2['branchid2']."'"; | |
$queryBranch3 = "select * from staffinfosalary where department = '".$res2['branchid3']."'"; | |
$queryBranch4 = "select * from staffinfosalary where department = '".$res2['branchid4']."'"; | |
$queryBranch5 = "select * from staffinfosalary where department = '".$res2['branchid5']."'"; | |
This file contains hidden or 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; | |
int main() | |
{ | |
double enter_time, exit_time, convert_enter, convert_exit, period; | |
int temp_enter, temp_exit; | |
cin >> enter_time; |
This file contains hidden or 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 <cmath> | |
#include <math.h> | |
#define PI 3.14159265 | |
using namespace std; | |
int main() { | |
double x1, x2, y1, y2, radius = 6378.1, d; | |
NewerOlder