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
| <style> | |
| #SITE_HEADER { | |
| background: rgb(255, 255, 255); | |
| } | |
| #tfboia { | |
| max-width: 100%; | |
| background: rgba(0, 0, 0, 0); | |
| } |
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
| rms::sites j("fetch"); | |
| std::vector<rms::sites> res; | |
| nlohmann::json jd,tmp; | |
| tmp["site_id"] = "100"; | |
| tmp["zone_id"] = "200"; | |
| tmp["cluster_id"] = "300"; | |
| tmp["site_name"] = "DHK1"; |
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
| CREATE or REPLACE FUNCTION door_status_sites() RETURNS trigger AS $$ | |
| DECLARE | |
| payload TEXT; | |
| BEGIN | |
| payload := json_build_object('table','sites'::text'id',NEW.id,'site_id',NEW.site_id,'cluster_id',NEW.cluster_id,'zone_id',NEW.zone_id, 'door_status',NEW.door_status); | |
| PERFORM pg_notify('door_status_sites',payload); | |
| RETURN NEW; | |
| END; | |
| $$ LANGUAGE plpgsql; |
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 <bits/stdc++.h> | |
| #include <pthread.h> | |
| #include <unistd.h> | |
| #define DISK_SIZE 512 | |
| using namespace std; | |
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 json | |
| import urllib.request | |
| import cv2 | |
| import os | |
| os.system('mkdir Images') | |
| f=open('Indian_Number_plates.json') | |
| i=0 | |
| 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
| //pwm control | |
| int E1 = 5; | |
| int M1 = 4; | |
| int E2 = 6; | |
| int M2 = 7; | |
| String ctrl_msg; |
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 java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.TreeMap; | |
| public class DecisionTree { | |
| boolean success=true,failure=false; | |
| public static void main(String[] args) { | |
| Node loan = new Node("Loan"); |
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 java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.TreeMap; | |
| public class BinaryTreeNicePrint { | |
| public static void main(String[] args) { | |
| Node a = new Node(1); | |
| Node b = new Node(2); | |
| Node c = new Node(3); |
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 hashlib as hasher | |
| import datetime as date | |
| # Define what a Snakecoin block is | |
| class Block: | |
| def __init__(self, index, timestamp, data, previous_hash): | |
| self.index = index | |
| self.timestamp = timestamp | |
| self.data = data | |
| self.previous_hash = previous_hash |
NewerOlder