Skip to content

Instantly share code, notes, and snippets.

View huadaonan's full-sized avatar

ERIC ZHOU huadaonan

  • UQU Village Saint Lucia QLD 4067 Australia
View GitHub Profile
@tzach
tzach / Advance_Data_Modeling.cql
Last active December 5, 2023 15:56
Advance Data Modeling
DROP KEYSPACE mykeyspace ;
CREATE KEYSPACE mykeyspace WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor' : 3} AND durable_writes = true;
USE mykeyspace;
CREATE TABLE heartrate_v10 (
pet_chip_id uuid,
owner uuid,
time timestamp,
heart_rate int,
@alirezamika
alirezamika / autoscraper-examples.md
Last active April 3, 2025 18:57
AutoScraper Examples

Grouping results and removing unwanted ones

Here we want to scrape product name, price and rating from ebay product pages:

url = 'https://www.ebay.com/itm/Sony-PlayStation-4-PS4-Pro-1TB-4K-Console-Black/203084236670' 

wanted_list = ['Sony PlayStation 4 PS4 Pro 1TB 4K Console - Black', 'US $349.99', '4.8'] 

scraper.build(url, wanted_list)
@BlinkyStitt
BlinkyStitt / making bitcoind
Last active October 3, 2015 18:27 — forked from andrewschaaf/gist:998886
compiling bitcoind on ubuntu-server 12.04
sudo apt-get update
sudo apt-get install -y git-core build-essential libssl-dev libboost-all-dev libdb5.1-dev libdb5.1++-dev libgtk2.0-dev
git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin/src
make -f makefile.unix clean; make -f makefile.unix USE_UPNP= bitcoind