A simple TCP-server setup.
[Using Node-RED]
Easy to test your clients used. Like Telnet and others.
Contains:
- Server
- Client
- Proxy (for clients not terminating their messages with
\n
)
<%@ Page Language="C#" %> | |
<% Response.ContentType = "text/xml"; | |
/* | |
[email protected] | |
Nabil Redmann 2016 | |
Requirements: |
/* | |
* User: BananaAcid | |
* Date: 30.07.2012 | |
* Type: Commandline | |
*/ | |
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Text; |
A simple TCP-server setup.
[Using Node-RED]
Easy to test your clients used. Like Telnet and others.
Contains:
\n
)(function($) { | |
function getTextWidth($element) { | |
var tester = $("<div/>").text($element.text()) | |
.css({ "position": "absolute", "float": "left", "white-space": "nowrap", "visibility": "hidden", "font": $element.css("font"), "text-transform": $element.css("text-transform"), "letter-spacing": $element.css("letter-spacing") }) | |
.appendTo($element.parent()), | |
width = tester.innerWidth(); | |
tester.remove(); | |
return width; | |
} |
# Nabil Redmann 2017 | |
# | |
# assumed: this htaccess is within htdocs/ | |
# | |
# dev.* mapping to ./dev/ | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / |
// ˫ routes ˫ index.js | |
GET / | |
// ˫ routes ˫ api1 ˫ index.js | |
GET /api/v1/ | |
GET /api/v1/x | |
// ˫ routes ˫ api1 ˫ a.js | |
PUT /api/v1/a/obj/:one/:two |
//- | |
PhpStorm 2018.1 shows multiple errors and is not able to handle this fully valid PUG mixin | |
mixin test(param1, param2 = "test", optionalParam3) | |
- var xOptionalParam3 = optionalParam3 || "is none"; | |
<!{param1}> !{param2} => !{xOptionalParam3} </!{param1}> | |
//- | |
using the PUGjs pre-compiler, ($ npm i -g pug ) | |
HTML with included PHP will be generated as .php - | |
then served using the webserver as any other PHP file | |
note: | |
lines starting with `<` will be handled as if they were prefixed | |
with `|` (pipe) == that is: as text. | |
indented lines are not inheriting the text-content-mode. |
// press and hold button for 1 second to change | |
const int ledRed = 0; | |
const int ledGreen = 1; | |
const int ledBlue = 2; | |
const int btn = 4; | |
int mode = 0; | |
int count = 0; |