Skip to content

Instantly share code, notes, and snippets.

View Julian-Dumitrascu's full-sized avatar
💭
Working and open to discuss trading.

Julian Dumitrascu Julian-Dumitrascu

💭
Working and open to discuss trading.
View GitHub Profile
@itod
itod / split_keyboards.md
Last active June 12, 2024 12:08
Every "split" mechanical keyboard currently being sold that I know of
import requests
from scrapy.selector import Selector
# Prepare url
city = 'Toronto'
main_url = 'https://www.airbnb.com'
city_url = f'{main_url}/s/{city}/homes/'
# Create selector
html = requests.get(city_url).content
# Select the first announcement from the previous list of 20
hotel = hotels[0]
# Get main information
title = hotel.css('a ::attr(aria-label)').extract_first()
url_link = hotel.css('::attr(href)').extract_first()
url_img = hotel.css('img ::attr(src)').extract_first()
type_of_room = hotel.css('div._b14dlit ::text').extract_first()
# Get tag information
@justinjdickow
justinjdickow / roam-templates.md
Created April 1, 2021 10:34
New Pitch Template - Roam Research - Shape Up
  • New Pitch
    • Origin::
    • Motivation::
    • Problem::
    • Observations::
    • Causes::
    • Solution::
    • Patterns::
    • Fat Marker::
  • Breadboard::
@justinsbarrett
justinsbarrett / recursiveHierarchyLabels.js
Last active March 3, 2024 04:31
Creates a series of labels based on a hierarchy of records in a single table, with the hierarchy determined by linking records.
/**
* Title: Recursive Hierarchy Labels
* License: MIT
* Author: Justin Barrett
* Sites:
* http://www.allaboutthatbase.tips - Main website
* https://www.youtube.com/c/AllAboutThatBase1 - All About That Base (YouTube channel)
* Show your support: https://ko-fi.com/allaboutthatbase
*
* Revision history: