This file contains 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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
/* | |
* Convert SIMH simulator tapes to normal files | |
* | |
* Copyright 2016 Tom Vijlbrief | |
* | |
* tvijlbrief at gmail dot com |
This file contains 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
<html> | |
<head> | |
<script src="../lib/jquery-1-11-3.js"></script> | |
</head> | |
<body> | |
<script> | |
function declare_f(w, a, p) { | |
p.domNode= $('body')[0]; | |
p._contextObj= { set: function(k,v) { console.log(v); }}; | |
This file contains 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
-- See | |
-- http://stackoverflow.com/questions/18209625/how-do-i-modify-fields-inside-the-new-postgresql-json-datatype | |
-- All credits to the original author | |
--------------------------------------------------------------------------------------------------------------- | |
CREATE OR REPLACE FUNCTION "json_object_set_key"( | |
"json" json, | |
"key_to_set" TEXT, | |
"value_to_set" anyelement | |
) |
This file contains 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
---------------------------------------------------------------------------- | |
-- CRS conversion functions for GeoJSON coordinates and lat/long pairs | |
-- in PostgreSQL/PostGIS: | |
-- | |
-- from (Google) Web Mercator (OpenLayers:900913, EPSG:3785 and EPSG:3857 (prefered)) | |
-- and WGS-84 Lat (y) Long (x) (EPSG:4326) | |
-- | |
-- to EPSG:28992 (RD new) | |
-- | |
-- Needs the PostGIS extension (surprise ;-) |
This file contains 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
#include <libmaple/pwr.h> | |
#include <libmaple/scb.h> | |
#include <RTClock.h> | |
// Define the Base address of the RTC registers (battery backed up CMOS Ram), so we can use them for config of touch screen or whatever. | |
// See http://stm32duino.com/viewtopic.php?f=15&t=132&hilit=rtc&start=40 for a more details about the RTC NVRam | |
// 10x 16 bit registers are available on the STM32F103CXXX more on the higher density device. | |
#define BKP_REG_BASE ((uint32_t *)(0x40006C00 + 0x04)) |
This file contains 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
/******************************************************************************* | |
Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman | |
(c) 2017 Tom Vijlbrief | |
Permission is hereby granted, free of charge, to anyone | |
obtaining a copy of this document and accompanying files, | |
to do whatever they want with them without any restriction, | |
including, but not limited to, copying, modification and redistribution. | |
NO WARRANTY OF ANY KIND IS PROVIDED. |
This file contains 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
/******************************************************************************* | |
Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman | |
(c) 2017 Tom Vijlbrief | |
Permission is hereby granted, free of charge, to anyone | |
obtaining a copy of this document and accompanying files, | |
to do whatever they want with them without any restriction, | |
including, but not limited to, copying, modification and redistribution. | |
NO WARRANTY OF ANY KIND IS PROVIDED. |
This file contains 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
/*************************************************** | |
This is an example for the CCS811 digital TVOC/eCO2 Sensor by CCMOSS/AMS | |
http://www.ccmoss.com/gas-sensors#CCS811 | |
Updated: March 28, 2017 | |
The sensor uses I2C protocol to communicate, and requires 2 pins - SDA and SCL | |
Another GPIO is also required to assert the WAKE pin for communication. this | |
pin is passed by an argument in the begin function. |
This file contains 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
/******************************************************************************* | |
Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman | |
(c) 2017 Tom Vijlbrief | |
Permission is hereby granted, free of charge, to anyone | |
obtaining a copy of this document and accompanying files, | |
to do whatever they want with them without any restriction, | |
including, but not limited to, copying, modification and redistribution. | |
NO WARRANTY OF ANY KIND IS PROVIDED. |
This file contains 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
/* | |
Blink ULP Hartbeat and read DHT22 in ULP code | |
Tom Vijlbrief oct 2017 | |
*/ | |
#include <time.h> | |
#include <sys/time.h> | |
#include "driver/rtc_io.h" |
OlderNewer