Skip to content

Instantly share code, notes, and snippets.

View RahulARanger's full-sized avatar
🚩
Planning for upcoming studies

Sai Hanuma Rahul RahulARanger

🚩
Planning for upcoming studies
View GitHub Profile
@greg-hoarau
greg-hoarau / 1-switch-to-frame.js
Last active December 17, 2022 15:49
switchToFrame custom command for Cypress
Cypress.Commands.add('switchToFrame', { prevSubject: 'element' }, ($iframe, callback = () => {}) => {
Cypress.log({
name: 'switchToFrame',
message: '',
});
const waitForFrameLoading = () => {
return new Cypress.Promise((resolve, reject) => {
onIframeReady($iframe[0], resolve, reject);
});
@fnky
fnky / ANSI.md
Last active July 29, 2024 15:29
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@robertpeteuil
robertpeteuil / GitHub Language Colors in CSS and JSON
Last active June 29, 2024 06:29
GitHub Language Colors in CSS and JSON
This Gist contains the GitHub Language colors in CSS and JSON formats in seperate files.
@345161974
345161974 / splashscreen_demo_1.py
Created March 15, 2017 13:02
PyQt SplashScreen Demo
from PyQt4.QtCore import *
from PyQt4.QtGui import *
import time
class Form(QDialog):
""" Just a simple dialog with a couple of widgets
"""
def __init__(self, parent=None):
super(Form, self).__init__(parent)
@Zearin
Zearin / python_decorator_guide.md
Last active July 24, 2024 03:06
The best explanation of Python decorators I’ve ever seen. (An archived answer from StackOverflow.)

NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.


Q: How can I make a chain of function decorators in Python?


If you are not into long explanations, see [Paolo Bergantino’s answer][2].

@ian-weisser
ian-weisser / clock.py
Created April 5, 2014 15:10
Tkinter clock widget
#!/usr/bin/python3
import tkinter
import time
"""
Example tkinter Clock widget, counting seconds and minutes in realtime.
Functions just like a Label widget.