Skip to content

Instantly share code, notes, and snippets.

View quintuschen's full-sized avatar
🍝
My code needs some tomato sauce.

Quintus Chen quintuschen

🍝
My code needs some tomato sauce.
  • Wellington, New Zealand
View GitHub Profile
@KaneBuckthorpe
KaneBuckthorpe / TagItem.swift
Last active October 18, 2022 07:15
SwiftUI - WrappedHStack + example TagsView
//
// TagItem.swift
// ChalkUp
//
// Created by kane buckthorpe on 13/03/2021.
//
import Foundation
class TagItem: ObservableObject {
@florentbr
florentbr / #drag-drop.py
Last active March 9, 2023 14:48
Selenium - HTML5 drag and drop
from selenium import webdriver
import time
# JavaScript: HTML5 Drag and drop script
# param1 (WebElement): Source element to drag
# param2 (WebElement): Optional - target element for the drop
# param3 (int): Optional - Drop offset x relative to the target if any or source element
# param4 (int): Optional - Drop offset y relative to the target if any or source element
# param4 (int): Optional - Delay in milliseconds (default = 1ms) for dragging and dropping
# param5 (string): Optional - Key pressed (alt or ctrl or shilf)
@mrtns
mrtns / gist:78d15e3263b2f6a231fe
Last active October 11, 2023 21:20
Upgrade Chrome from Command Line on Ubuntu
# Install
# via http://askubuntu.com/questions/510056/how-to-install-google-chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
# Update