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
import re | |
for test_string in ['555-1212', 'ILL-EGAL']: | |
if re.match(r'^\d{3}-\d{4}$', test_string): | |
print (test_string, 'is a valid US local phone number') | |
else: | |
print (test_string, 'rejected') |
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
group = aio.groups('group-key') | |
feeds = group.feeds | |
def get_feed(key): | |
return next((feed for feed in feeds if feed.key == key), None) | |
while True: | |
if machine == 1: | |
feed_one_ = get_feed('group-key.feed-one') | |
feed_one_.send_data(feed_one_.key, str(state)) |
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
Very cool project! aio_nNIy110VU1jL3Kd6JkVUYmknYSHK |
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
const uint8_t PROGMEM gamma8[] = { | |
0X01, 0X01, 0X01, 0X02, 0X02, 0X02, 0X03, 0X03, 0X03, 0X04, 0X04, 0X04, | |
0X05, 0X05, 0X05, 0X06, 0X06, 0X06, 0X07, 0X07, 0X07, 0X08, 0X08, 0X08, | |
0X09, 0X09, 0X0A, 0X0B, 0X0B, 0X0B, 0X0C, 0X0C, 0X0C, 0X0D, 0X0D, 0X0D, | |
0X0E, 0X0E, 0X0E, 0X10, 0X10, 0X10, 0X11, 0X11, 0X11, 0X12, 0X12, 0X12, | |
0X14, 0X14, 0X14, 0X15, 0X15, 0X15, 0X17, 0X17, 0X17, 0X18, 0X18, 0X19, | |
0X1A, 0X1A, 0X1A, 0X1B, 0X1C, 0X1C, 0X1D, 0X1D, 0X1E, 0X1F, 0X1F, 0X1F, | |
0X21, 0X21, 0X21, 0X22, 0X23, 0X23, 0X24, 0X25, 0X25, 0X26, 0X27, 0X27, | |
0X28, 0X29, 0X29, 0X2A, 0X2B, 0X2B, 0X2C, 0X2D, 0X2D, 0X2F, 0X2F, 0X30, | |
0X31, 0X31, 0X32, 0X33, 0X34, 0X34, 0X36, 0X36, 0X37, 0X38, 0X38, 0X39, |
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
### Keybase proof | |
I hereby claim: | |
* I am jwcooper on github. | |
* I am jwcooper (https://keybase.io/jwcooper) on keybase. | |
* I have a public key ASBplHhOBB4kmiV1rFIBKubv3paP0uqUxLugYRje5aqSUAo | |
To claim this, I am signing this object: |
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
<ol> | |
<li>List One</li> | |
<li>List Two</li> | |
<li>List Three with children | |
<ol> | |
<li>Nested List 1</li> | |
<li>Nested List 2</li> | |
</ol> | |
</li> | |
<li>List Four</li> |
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
<SCRIPT LANGUAGE="JavaScript"> | |
function calcBoost(form) { | |
vinmax=eval(form.vinmax.value); | |
vinmin=eval(form.vinmin.value); | |
voutmax=eval(form.voutmax.value); | |
voutmin=eval(form.voutmin.value); | |
freq=eval(form.freq.value); | |
iout=eval(form.iout.value); | |
vripple = eval(form.vripple.value); |