Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
#!/bin/env python | |
# expects python3 | |
################################################################################ | |
import argparse | |
import socket | |
import sys | |
################################################################################ |
#!/usr/bin/env python | |
import socket | |
import threading | |
import select | |
import sys | |
terminateAll = False | |
class ClientThread(threading.Thread): |
// Forked 'toFloat' from https://gist.github.com/laerciobernardo/498f7ba1c269208799498ea8805d8c30 | |
// Forked 'toHex' from stackoverflow answer https://stackoverflow.com/a/47187116/10522253 | |
// Modifyed by: Jozo132 (https://github.com/Jozo132) | |
const Float32ToHex = (float32) => { | |
const getHex = i => ('00' + i.toString(16)).slice(-2); | |
var view = new DataView(new ArrayBuffer(4)) | |
view.setFloat32(0, float32); | |
return Array.apply(null, { length: 4 }).map((_, i) => getHex(view.getUint8(i))).join(''); | |
} |
mysqltutorial.org/mysql-find-duplicate-values
First, create a table named contacts with four columns: id, first_name, last_name, and email.
CREATE TABLE contacts (
Dashboards created with node-red-dashboards all have the same favicon
You can easily change this by changing the icons in the .node-red/node-modules/node-red-dashboard/dist
, but this change will be lost the next time you update node-red-dashboard
.
To get a permanent change, add your icon as files icon64x64.png
, icon120x120.png
, and icon192x192.png
to a folder of your choice, e.g. /home/
nodereduser/.node-red/icons
, where nodereduser is the user executing node-red
.
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>The HTML5 Herald</title> | |
<meta name="description" content="The HTML5 Herald"> | |
<meta name="author" content="SitePoint"> |
#include?"Wire.h" | |
#define?tcn75address?0x4F?// with pins 5~7 set to GND, the device address is 0x48 | |
void setup() | |
{ | |
??Wire.begin(); // wake up I2C bus | |
??Serial.begin(115200); | |
} | |
float tcn75_getTemperature(int address) |
Now, you might think the answer I'm going to give you is already obvious because I'm using GiHub right now, but it's not. Both GitHub and Bitbucket offer great Git services, but each has its own features and pricing plans. In the following... thing, I'm going to compare the two and then offer a final solution that should work for most people.
TL;DR: Both. Use GitHub for open source and public repos (you'll spend most of your time here) and Bitbucket for private repos. But, sign up for GitHub first, then import account into Bitbucket. Also, check comments for updates. P.S. I personally prefer GitHub.