I hereby claim:
- I am angww on github.
- I am angw (https://keybase.io/angw) on keybase.
- I have a public key ASCuXSi5ZgA621iun7-OpkQalumR92W9Pwq6KjcNmT-qDwo
To claim this, I am signing this object:
/* | |
This snippet code is to test GPIO on Cubieboard A20. | |
The main loop blinks two LEDs waiting a button click (conected in PORT_BTN) via interrupt, | |
using funcion poll and wont consuming 100% of cpu. | |
This code was tested with: | |
* Cubiebord A20 (armv7) | |
* Armbian 21.02.3 (Ubuntu based) |
I hereby claim:
To claim this, I am signing this object:
#pip install premailer | |
import sys | |
from premailer import transform | |
if len(sys.argv) < 2: | |
print("Falta o agumento 1. Arquivo HTML de entrada.") | |
sys.exit(1) | |
file_in_name = str(sys.argv[1]) |
package main | |
import ( | |
"context" | |
"log" | |
"strings" | |
"github.com/chromedp/chromedp" | |
) |
const puppeteer = require('puppeteer'); | |
const fs = require('fs'); | |
const URL = 'http://rodoviaria-poa.com.br/institucional/php/hora.php'; | |
/**** LIB FUNCTIONS */ | |
const querySelectorFrom = (selector, elements) => { | |
const elementsArr = [...elements]; | |
return [...document.querySelectorAll(selector)] | |
.filter(elm => elementsArr.includes(elm)); | |
}; |
package main | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" | |
"os/exec" |