Skip to content

Instantly share code, notes, and snippets.

View ian-quinn's full-sized avatar
🕹️
Work remotely

Yikun ian-quinn

🕹️
Work remotely
  • Tongji University
  • Shanghai
View GitHub Profile
C# 7 hrs 5 mins ███████████████▌░░░░░ 74.1%
Other 2 hrs 2 mins ████▍░░░░░░░░░░░░░░░░ 21.4%
Markdown 12 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.2%
Python 7 mins ▎░░░░░░░░░░░░░░░░░░░░ 1.3%
HTML 5 mins ▏░░░░░░░░░░░░░░░░░░░░ 1.0%
@ian-quinn
ian-quinn / vrvCrawler.py
Created May 13, 2021 11:55
[vrvCrawler] Sample code to grab info from Darkin website
import os
import time
import threading
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.chrome.options import Options
from selenium.common.exceptions import NoSuchElementException
@ian-quinn
ian-quinn / component_ghpython.py
Last active May 13, 2021 08:17
[component_ghpython] Useful GH_Python components #grasshopper #python
# Switch on and off of the global timer
# Needs update with Rhino 7
import Grasshopper as gh
# Get the Grasshopper document and objects
ghDoc = ghenv.Component.OnPingDocument()
ghObjects = ghDoc.Objects
# Iterate the GH objects, check type and reset data recorders
for obj in ghObjects:
if type(obj) is gh.Kernel.Special.GH_Timer:
@ian-quinn
ian-quinn / compnent_dynamo.py
Last active May 13, 2021 08:25
[component_dynamo] Useful dynamo python scripts #dynamo
# Cull Null from Dynamo list data
def ClearList(_list):
out = []
for _list1 in _list:
if _list1 is None:
continue
if isinstance(_list1, list):
_list1 = ClearList(_list1)
if not _list1: