Skip to content

Instantly share code, notes, and snippets.

View tomtomjhj's full-sized avatar
▪️
.__________.

Jaehwang Jung tomtomjhj

▪️
.__________.
View GitHub Profile
@tomtomjhj
tomtomjhj / nvim-treesitter-slow.svg
Last active March 6, 2023 12:35
nvim treesitter slow
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

expressivity

internal links

no standard

Automatically generated anchor/fragment/identifier/whatever for heading is widely supported, but has several issues:

  • cannot grep the definition
    • before/after the heading, add a comment with the anchor?
  • clunky and verbose
@tomtomjhj
tomtomjhj / scrapy_wrap.py
Created October 28, 2017 05:57
wrapping scrapy crawler with multiprocessing and scrapy signals
import scrapy
from scrapy.crawler import CrawlerProcess
from scrapy import signals
from multiprocessing import Process, Queue
class QuotesSpider(scrapy.Spider):
name = "quotes"
start_urls = [
'http://quotes.toscrape.com/page/1/',
]