pcc function from https://github.com/chenhao392/go/blob/master/pcc.go
test some operation in github.com/gonum/matrix/mat64
/******************************************************************************* | |
* | |
* A minimal Forth compiler in C | |
* By Leif Bruder <[email protected]> http://defineanswer42.wordpress.com | |
* Release 2014-04-04 | |
* | |
* Based on Richard W.M. Jones' excellent Jonesforth sources/tutorial | |
* | |
* PUBLIC DOMAIN | |
* |
pcc function from https://github.com/chenhao392/go/blob/master/pcc.go
test some operation in github.com/gonum/matrix/mat64
// Comes from http://developer.gimp.org/writing-a-plug-in/1/hello.c | |
#include <libgimp/gimp.h> | |
static void query (void); | |
static void run (const gchar *name, | |
gint nparams, | |
const GimpParam *param, | |
gint *nreturn_vals, | |
GimpParam **return_vals); |
// IterateIPRange calculates the sequence of IP address from beginAddr to endAddr | |
// then calls the callback cb for each address of the sequence. | |
// beginAddr value must be smaller than endAddr. | |
func IterateIPRange(beginAddr, endAddr net.IP, cb func(addr net.IP)) error { | |
incIP := func(ip net.IP) net.IP { | |
for j := len(ip) - 1; j >= 0; j-- { | |
ip[j]++ | |
if ip[j] > 0 { | |
break | |
} |
from bs4 import BeautifulSoup | |
import csv | |
# Open and read the HTML file | |
with open("Style reference.html", 'r', encoding='utf-8') as file: | |
content = file.read() | |
# Parse the HTML content using BeautifulSoup | |
soup = BeautifulSoup(content, 'html.parser') |