Skip to content

Instantly share code, notes, and snippets.

View ce-dric's full-sized avatar
🎯
Focusing

Changwoo Song ce-dric

🎯
Focusing
View GitHub Profile
@ce-dric
ce-dric / read_grayscale_image.ipynb
Created March 4, 2024 04:23
extract line and plot
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ce-dric
ce-dric / QImageViewSync.py
Created October 7, 2020 03:37 — forked from acbetter/QImageViewSync.py
Two Image Synchronous Scrolling in the window by PyQt5 and Python 3
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QImage, QPixmap, QPalette, QPainter
from PyQt5.QtPrintSupport import QPrintDialog, QPrinter
from PyQt5.QtWidgets import QLabel, QSizePolicy, QScrollArea, QMessageBox, QMainWindow, QMenu, QAction, \
qApp, QFileDialog, QWidget, QHBoxLayout
api_key_ = 'type_api_key'
api_key_secret_ = 'type_api_key_secret'
token_ = 'type_token'
token_secret_ = 'type_token_secret'
# set tweepy(twitter api)
auth = tweepy.OAuthHandler(api_key_, api_key_secret_)
auth.set_access_token(token_, token_secret_)
api = tweepy.API(auth)