Skip to content

Instantly share code, notes, and snippets.

View ooglek's full-sized avatar

Peter Beckman ooglek

View GitHub Profile
@zry98
zry98 / digoo-station.yaml
Created June 29, 2023 19:22
Digoo weather station sensor component for ESPHome
substitutions:
device_name: 'Digoo Station'
external_location: 'Balcony'
rf_receiver_pin: '4'
digoo_sensor_channel: '2'
digoo_sensor_id: '9'
esphome:
name: digoo-station
comment: 'ESP station for environment monitoring'
@glendmaatita
glendmaatita / ucwords.dart
Created May 20, 2021 04:05
Dart Upper Case Words (ucwords)
var words = "hey i am here. HOW ARE YOU?";
var ucwords = words.toLowerCase()
.split(" ")
.map((e) => "${e[0].toUpperCase()}${e.substring(1)}")
.join(" ");
print(ucwords); // "Hey I Am Here. How Are You?"
@anchetaWern
anchetaWern / php-webscraping.md
Created August 4, 2013 13:18
web scraping in php

Have you ever wanted to get a specific data from another website but there's no API available for it? That's where Web Scraping comes in, if the data is not made available by the website we can just scrape it from the website itself.

But before we dive in let us first define what web scraping is. According to Wikipedia:

{% blockquote %} Web scraping (web harvesting or web data extraction) is a computer software technique of extracting information from websites. Usually, such software programs simulate human exploration of the World Wide Web by either implementing low-level Hypertext Transfer Protocol (HTTP), or embedding a fully-fledged web browser, such as Internet Explorer or Mozilla Firefox. {% endblockquote %}