Skip to content

Instantly share code, notes, and snippets.

View DataSolveProblems's full-sized avatar
💭
Github Working In Progress

Jie Jenn DataSolveProblems

💭
Github Working In Progress
View GitHub Profile
<Configuration>
<vGPU>Enables</vGPU>
<MemoryInMB>100096</MemoryInMB>
<MappedFolders>
<MappedFolder>
<HostFolder><folder path></HostFolder>
<ReadOnly>false</ReadOnly>
</MappedFolder>
</MappedFolders>
</Configuration>
import requests
url = 'https://data.taipei/api/v1/dataset/296acfa2-5d93-4706-ad58-e83cc951863c?scope=resourceAquire&fbclid=IwAR0RXFyb5NsRdZvuTmUG-IN3t6WnczaPuHWOeknehOerncohO0c5WwAJKd8'
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0'
}
response = requests.get(url, headers=headers)
if response.status_code == 200:
print(response.json())
else:
Option Explicit
Dim wsReferences As Worksheet, wsFilter As Worksheet
Private Sub cmdClear_Click()
Me.lstResults.Clear
End Sub
Private Sub cmdClose_Click()
Unload Me
Option Explicit
Sub ExportWorksheets()
Dim wbSource As Workbook, wbTarget As Workbook
Dim worksheetList As String 'Use colon as seperator since you cannot have colon in your worksheet name
Dim worksheetArr As Variant
Dim arrIndx As Long
On Error GoTo errHandle
Option Explicit
Dim FolderPath As String
Private Sub cmdExport_Click()
Dim i As Integer, iFrame As Integer, iExportType As Integer
Dim fd As Object
Dim ctrl As Control
Option Explicit
Dim Status As String
Sub Main()
Dim LastRow As Long, iRow As Long
Dim FolderPath As String
Dim wsApp As Worksheet
Set wsApp = ThisWorkbook.Worksheets("App")
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QTableWidget
from PyQt5.Qt import QTableWidgetItem, QAbstractItemView
class AppDemo(QWidget):
    def __init__(self):
        super().__init__()
        self.initUI()
        self.createTable()
        lstSelection = [0, 3, 4]
        self.selectRows(lstSelection)
import sys
from PyQt5.QtWidgets import (QApplication, QWidget, QGridLayout, QVBoxLayout, QLabel, QToolBox, QPushButton, QTextEdit, QLineEdit)
from PyQt5.QtGui import QColor
class AppDemo(QWidget):
def __init__(self):
super().__init__()
self.resize(600, 400)
layout = QGridLayout()
import matplotlib.pyplot as plt
from matplotlib.widgets import SpanSelector
def onselect_function(min_value, max_value):
print(min_value, max_value)
return min_value, max_value
fig, ax = plt.subplots()
ax.plot([1, 2, 3], [10, 50, 100])
import sys
from PyQt5.QtWidgets import (QApplication)
from PyQt5.QtChart import QChart, QLineSeries, QAreaSeries, QChartView
from PyQt5.QtGui import QPen, QLinearGradient, QColor
from PyQt5.QtCore import QPointF
from PyQt5.Qt import QGradient, Qt, QPainter
app = QApplication([])
upperSeries = QLineSeries()