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
# firaindo.py | |
import time | |
import cv2 | |
import avisengine | |
import config | |
class FiraIndo: | |
def __init__(self): | |
self.car = avisengine.Car() |
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 face_recognition | |
import cv2 | |
import numpy as np | |
import argparse | |
import os | |
def apply_blur(image, region, light_blur=False): | |
"""Menerapkan efek blur dengan intensitas berbeda""" | |
try: | |
top, right, bottom, left = region |
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
from machine import Pin, SPI | |
from os import uname | |
class MFRC522: | |
DEBUG = False | |
OK = 0 | |
NOTAGERR = 1 | |
ERR = 2 |
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 random | |
import threading | |
from paho.mqtt import client as mqtt_client | |
broker = 'broker.emqx.io' | |
port = 1883 | |
topic = "chat/82812181" | |
client_id = input("Enter your name: ") | |
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 <AViShaWiFi.h> | |
const char* ssid = "WiFiName"; | |
const char* pass = "WiFiPassword"; | |
const char *url = "http://104.237.9.196:5055"; | |
const char *id = "431212121"; | |
AViShaWiFi wifi; | |
String latitude = "-6.5234367"; |
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 | |
// Set header agar dapat melakukan Server-Sent Events | |
header('Content-Type: text/event-stream'); | |
header('Cache-Control: no-cache'); | |
include('connection.php'); | |
$query = "SELECT * FROM data"; | |
$result = mysqli_query($conn, $query); | |
$data = mysqli_fetch_assoc($result); | |
$data = json_encode($data); |
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 | |
$phone = '6281000000000'; | |
$text = 'Tes kirim pesan'; | |
$apiKey = '0000000'; | |
$url = 'https://api.callmebot.com/whatsapp.php'; | |
$data = array( | |
'phone' => $phone, | |
'text' => $text, | |
'apikey' => $apiKey | |
); |
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 <SPI.h> | |
#include <MFRC522.h> | |
#define SS_PIN 15 | |
#define RST_PIN 2 | |
MFRC522 mfrc522(SS_PIN, RST_PIN); | |
MFRC522::MIFARE_Key key; | |
int blockNum = 2; | |
int intData = 1000000; // Example integer data | |
byte blockData[16]; | |
byte bufferLen = 18; |
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 paho.mqtt.client as mqtt | |
import colorama as color | |
import random | |
import string | |
import time | |
topic_terima = "kbkm/2023/533534343" | |
topic_kirim = "kbkm/2023/6876766" | |
def ketika_terhubung(client,userdata,flags,rc): | |
print("Berhasil Terhubung") |
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
from IPython.display import display, Javascript | |
from google.colab.output import eval_js | |
from base64 import b64decode | |
def take_photo(filename='photo.jpg', quality=0.8): | |
js = Javascript(''' | |
async function takePhoto(quality) { | |
const div = document.createElement('div'); | |
const capture = document.createElement('button'); | |
capture.textContent = 'Capture'; |
NewerOlder