Skip to content

Instantly share code, notes, and snippets.

<?php
function get_html_contents($full_url) {
return str_get_html($full_url); // simplehtmldom's function
}
function get_full_result_block($html) {
return $html->find('div#center_col', 0);
}
function get_topstuff($whole_result) {
@stephenhouser
stephenhouser / Bing-Image-Scraper
Last active May 23, 2024 19:33
Bing-Image-Scraper
Bing image scraper example using Python to query and scrape Microsoft Bing image search.
@kdembler
kdembler / apfsbug.md
Last active June 15, 2024 22:44
Fix League of Legends client not launching after champion select on macOS

The issue

After fresh install of League of Legends on macOS with case-sensitive APFS volume it's not possible to start League of Legends game, after champion selection the launcher won't open the game client and is stuck with reconnect button.

Solution

Terminal method is probably more reliable as you can see real file names within terminal opposite to Finder which "beautifies" them so you can't be sure what the actual file name is.

Note that League patcher will probably install updates under old filename so it's possible that these steps will need to be taken after every patch until Riot fixes it.

Terminal.app

  1. Open Terminal.app from Applications
  2. Browse to League contents with cd /Applications/League of Legends.app/Contents/LoL/RADS/solutions/lol_game_client_sln/releases/
@imba-tjd
imba-tjd / .Cloud.md
Last active July 5, 2024 18:08
☁️ 一些免费的云资源

IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。

其他人的集合