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
#!/bin/sh | |
while : | |
do | |
if upload.py "$@" | |
then | |
break | |
else | |
echo Retry in 60s | |
sleep 60 |
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
#!/usr/bin/env python3 | |
import os | |
import sys | |
import subprocess | |
import re | |
import requests | |
import bz2 | |
from pymongo import MongoClient, ASCENDING, DESCENDING |
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
#!/usr/bin/python | |
import sys | |
import os | |
from optparse import OptionParser | |
from os.path import expanduser | |
from pydrive.auth import GoogleAuth | |
from pydrive.drive import GoogleDrive |
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
/* r0 = r0 xor r2, spills r1 */ | |
.macro xor | |
/* | |
See https://stackoverflow.com/a/5377173 | |
int bitwise_XOR(int a, int b) | |
{ | |
return (a + b) - (a & b) - (a & b); | |
} |
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
/* | |
* Demo of Stack and subroutine macros for ESP32 ULP | |
* | |
* R3 is the SP | |
*/ | |
#include "soc/rtc_cntl_reg.h" | |
#include "soc/rtc_io_reg.h" | |
#include "soc/soc_ulp.h" |
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" |
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
/******************************************************************************* | |
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. |
NewerOlder