please install the latest version of npm
sudo apt install npm
npm install -g npm@latest
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# https://www.nginx.com/resources/wiki/start/ | |
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/ | |
# https://wiki.debian.org/Nginx/DirectoryStructure | |
# | |
# In most cases, administrators will remove this file from sites-enabled/ and | |
# leave it as reference inside of sites-available where it will continue to be | |
# updated by the nginx packaging team. |
server { | |
listen 80; | |
listen [::]:80; | |
root /var/www/directory_name; | |
index index.php index.html index.htm; | |
# Make site accessible from http://localhost/ | |
server_name domain.com www.domain.com; | |
location / { |
<script type="text/javascript"> | |
var cookies_id = '<?php echo $lesson_id; ?>#<?php echo $this->session->userdata('user_id'); ?>'; | |
function setCookie(cname, cvalue, exdays) { | |
var d = new Date(); | |
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); | |
var expires = "expires=" + d.toGMTString(); | |
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; | |
// console.log("Saved to Cookie " + cvalue) | |
} |
var video = document.getElementById('video'); | |
var supposedCurrentTime = 0; | |
window.onload = function() { | |
video.addEventListener("error", function(event) { | |
video.src = "<?= 'https://file.luarsekolah.com/storage/course/'.str_replace(' ', '%20', $loadSubChapter->video); ?>"; | |
}); | |
video.src = "<?= getConfiguration()->video_server.'/storage/course/'.str_replace(' ', '%20', $loadSubChapter->video); ?>"; | |
} | |
function changeVideo(videoData){ |
<?php | |
class Recommendation extends MY_Controller{ | |
public function __construct() | |
{ | |
parent::__construct(); | |
//Codeigniter : Write Less Do More | |
$this | |
->load |
import React, { Component } from 'react' | |
import { Redirect, Link } from "react-router-dom"; | |
import PassingGrade from "../../../Services/PassingGrade"; | |
function ListUniversity (props) { | |
var obj = props.listUniversity; | |
// console.log(obj); | |
if (obj.status != 'success') { | |
return ( | |
<option value="error">Error</option> |
#include "FirebaseESP32.h" | |
#include <WiFi.h> | |
#include "DHT.h" | |
#define DHTPIN 2 | |
#define DHTTYPE DHT11 | |
#define FIREBASE_HOST "iot-smarthelm.firebaseio.com" | |
#define FIREBASE_AUTH "isi disini" | |
#define WIFI_SSID "GROWLAB" | |
#define WIFI_PASSWORD "cigadungno20" |
<?php | |
$servername = "localhost"; | |
$username = "root"; | |
$password = ""; | |
$dbname = "smart-helm"; | |
function show_data($no_wa) | |
{ | |
global $servername,$username,$password,$dbname; |
<?php | |
header("Content-Type: application/json; charset=UTF-8"); | |
$servername = "localhost"; | |
$username = "root"; | |
$password = ""; | |
$dbname = "smart-helm"; | |
function eror_parameter() | |
{ |