This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
OlderNewer