Skip to content

Instantly share code, notes, and snippets.

Avatar

Joe jjssoftware

View GitHub Profile
@jjssoftware
jjssoftware / node-RED.darksky.inlined.weather.flow.json
Created Feb 12, 2017
A node-RED flow that uses the Dark Sky API - inlines the skycons JS script to prevent jquery cache busting behaviour
View node-RED.darksky.inlined.weather.flow.json
[
{
"id": "c1f1fc46.4bb3b",
"type": "tab",
"label": "Weather"
},
{
"id": "76c2790c.78f858",
"type": "inject",
"z": "c1f1fc46.4bb3b",
@jjssoftware
jjssoftware / node-RED.NEW_STYLE.darksky.weather.flow.json
Last active Jan 20, 2019
A node-RED flow that uses the Dark Sky API - injects the skycons script tag element to prevent jquery cache busting behaviour
View node-RED.NEW_STYLE.darksky.weather.flow.json
[
{
"id": "c1f1fc46.4bb3b",
"type": "tab",
"label": "Weather"
},
{
"id": "76c2790c.78f858",
"type": "inject",
"z": "c1f1fc46.4bb3b",
@jjssoftware
jjssoftware / node-RED.darksky.weather.flow.json
Created Feb 9, 2017
A node-RED flow that uses the Dark Sky API based on notes in this post: http://tech.scargill.net/node-red-weather/
View node-RED.darksky.weather.flow.json
[
{
"id": "a39dbd83.b5365",
"type": "tab",
"label": "Weather"
},
{
"id": "2c44271c.a08d58",
"type": "inject",
"z": "a39dbd83.b5365",
View JavaRegexTest.java
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class JavaRegexTest {
public static void main(String []args)
{
String textToSearch = "-DARDUINO_BOARD=\"ESP8266_ESP01\" -DDEFINE_NO_2=\"ESP8266_ESP01\" -DALREADY_ESCAPED=\\\"VALUE\\\" -DDEFINE_WITH_WHITESPACE=\"ESP8266 ESP01\"";
Pattern regex = Pattern.compile("-D\\S+=\"\\S+\""); //value contains any char but whitespace