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
| # ========================================================================================| | |
| # INSTALL_USB_DONGLE_RTL | |
| # ========================================================================================| | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get install git git-core cmake libusb-1.0-0-dev build-essential lsof | |
| install the RTL-2832U USB dongle driver | |
| git clone https://git.osmocom.org/rtl-sdr |
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
| #define BLYNK_PRINT Serial | |
| #include <ESP8266WiFi.h> | |
| #include <DNSServer.h> | |
| #include <ESP8266WebServer.h> | |
| #include <WiFiManager.h> | |
| #include <EEPROM.h> | |
| #include <BlynkSimpleEsp8266.h> | |
| WiFiManager wifiManager; |
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
| /* Secret Door Knock Detecting Door Lock | |
| Originally from Steve Hoefer http://grathio.com Version 0.1.10.20.10 | |
| Updates by Lee Sonko | |
| Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 | |
| http://creativecommons.org/licenses/by-nc-sa/3.0/us/ | |
| (In short: Do what you want, just be sure to include this line and the four above it, and don't sell it or use it in anything you sell without contacting me.) | |
| Analog Pin 0: Piezo speaker (connected to ground with 1M pulldown resistor) | |
| Digital Pin 2: Switch to enter a new code. Short this to enter programming mode. |
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
| // set-up a connection between the client and the server | |
| var socket = io.connect(); | |
| // let's assume that the client page, once rendered, knows what room it wants to join | |
| var room = "abc123"; | |
| socket.on('connect', function() { | |
| // Connected, let's sign-up for to receive messages for this room | |
| socket.emit('room', room); | |
| }); |
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
| // sandi vigene chiper | |
| // teori dasar https://id.wikipedia.org/wiki/Sandi_Vigen%C3%A8re | |
| function ord(string) { | |
| var str = string + '', | |
| code = str.charCodeAt(0); | |
| if (0xD800 <= code && code <= 0xDBFF) { | |
| var hi = code; | |
| if (str.length === 1) { | |
| return code; |
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
| # sandi vigene chiper | |
| # teori dasar https://id.wikipedia.org/wiki/Sandi_Vigen%C3%A8re | |
| def encode(key, string): | |
| encoded_chars = [] | |
| for i in range(len(string)): | |
| key_c = key[i % len(key)] | |
| encoded_c = chr(ord(string[i]) + ord(key_c) % 256) | |
| encoded_chars.append(encoded_c) | |
| encoded_string = ''.join(encoded_chars) |
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 | |
| // sandi vigene chiper | |
| // teori dasar https://id.wikipedia.org/wiki/Sandi_Vigen%C3%A8re | |
| function encode($key, $string) { | |
| $encoded_chars = array(); | |
| $i = 0; | |
| foreach(str_split($string) as $c){ | |
| $key_c = $key[$i % strlen($key)]; |
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
| # encoding: utf8 | |
| # vigenere cipher | |
| # https://stackoverflow.com/a/2490718/1675586 | |
| def encode(key, string): | |
| encoded_chars = [] | |
| for i in range(len(string)): | |
| key_c = key[i % len(key)] | |
| encoded_c = chr(ord(string[i]) + ord(key_c) % 256) | |
| encoded_chars.append(encoded_c) |
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"> | |
| <head> | |
| <!-- Required meta tags --> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
| <!-- Bootstrap CSS --> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous"> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/openlayers/4.3.2/ol.css" type="text/css"> |
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
| // CONVERTER POINT TO POLYGON SECARA KODINGAN | |
| // const util = require('util') | |
| // function createGeoJSONCircle(center, radiusInKm = 1, parentId = 0, points = 64) { | |
| // const coords = { | |
| // latitude: center[1], | |
| // longitude: center[0], | |
| // }; |