based on Python concept of dictionary type, provides access to assocc array
dictionary slownik;
dictionary *wikipedia=new dictionary;
| const tcpServer=require("./tcp-server.js"); | |
| var server=new tcpServer(80); | |
| server.setupServeListener(function(){ | |
| console.log("START SERVER on port "+this.port); | |
| }); | |
| server.setupConnectListener(function(conn){ | |
| console.log("client connected!!! "+conn.remoteAddress); | |
| }); | |
| server.setupDataProcessor(function(data, conn){ | |
| console.log(data); |
| /* | |
| Sett Sarverott | |
| core-sheme.js | |
| summer 2019 | |
| */ | |
| class Core{ | |
| constructor(opts={}){ | |
| this.opts=this.defaults(opts); | |
| this.init(); |
| #ifndef CHAR_STRING | |
| #define CHAR_STRING | |
| /* Sarverott 2020 */ | |
| class charString{ | |
| public: | |
| static char* leftTrim(char* input, char trimmer=' '){ | |
| int index=0; | |
| int cutFlag=0; | |
| bool cutting=false; | |
| char* output=new char(); |
| #ifndef TIME_H | |
| #define TIME_H | |
| /* Sarverott 2020 */ | |
| //#include <iostream> | |
| //using namespace std; | |
| class time{ | |
| private: | |
| int hour=0; |
| #ifndef DATE_H | |
| #define DATE_H | |
| /* Sarverott 2020 */ | |
| //#include <iostream> | |
| //using namespace std; | |
| class date{ | |
| public: | |
| int year=0; |
| /* | |
| ipac-maco.js | |
| Sett Sarverott | |
| 2020 | |
| */ | |
| function ipacCoding(ipAddress){ | |
| //console.log(ipAddress); | |
| var cryptoip=[]; | |
| ipAddress.split(".").forEach(function(data){ |
| const express=require('express'); | |
| const johnnyFive=require("johnny-five"); | |
| const app=express(); | |
| const port=3000; | |
| const board=new johnnyFive.Board({port:"COM8"}); | |
| class AnubisLightsControll{ | |
| constructor(name,pin){ | |
| this.pin=pin; | |
| this.name=name; |
| /* Sett Sarverott @ 2021 */ | |
| function camelCaser(name, spliter="-"){//camelCaser("namespace-helpers")=="namespaceHelpers" | |
| name=name.split(spliter); | |
| for(var i in name){ | |
| if(i!=0){ | |
| name[i]=name[i].charAt(0).toUpperCase()+name[i].slice(1).toLowerCase(); | |
| } | |
| } | |
| return name.join(""); | |
| } |
| /* Sett Sarverott @ 2021 */ | |
| var d="YT-mixtape."; | |
| var z=window.location.href.split("?")[1].split("&"); | |
| for(var i in z) | |
| if( | |
| z[i].split("=")[0]=="v" | |
| ) | |
| d+=z[i].split("=")[1]+"."; | |
| d+="txt\n\n~~~~~~\n"; | |
| var y=document.getElementsByTagName("yt-formatted-string"); |