This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JavaScript function for converting simple XPath to CSS selector. | |
// Ported by Dither from [cssify](https://github.com/santiycr/cssify) | |
// Example: `cssify('//div[@id="girl"][2]/span[@class="body"]//a[contains(@class, "sexy")]//img[1]')` | |
var sub_regexes = { | |
"tag": "([a-zA-Z][a-zA-Z0-9]{0,10}|\\*)", | |
"attribute": "[.a-zA-Z_:][-\\w:.]*(\\(\\))?)", | |
"value": "\\s*[\\w/:][-/\\w\\s,:;.]*" | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from traits.api import * | |
from traitsui.api import * | |
global_count = 0 | |
class TNode(TreeNodeObject): | |
count = 0 | |
files = List | |
label = Str | |
something = Int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyface.qt import QtGui, QtCore | |
import time | |
import pandas | |
import numpy | |
from matplotlib import pyplot as plt | |
a = QtGui.QApplication.instance() or QtGui.QApplication([]) | |
w = QtGui.QPlainTextEdit() | |
w.setMinimumSize(600, 400) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# ----------------------------------------------------------------------------- | |
# Getting Things GNOME! - a personal organizer for the GNOME desktop | |
# Copyright (c) 2008-2013 - Lionel Dricot & Bertrand Rousseau | |
# | |
# This program is free software: you can redistribute it and/or modify it under | |
# the terms of the GNU General Public License as published by the Free Software | |
# Foundation, either version 3 of the License, or (at your option) any later | |
# version. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# Standard library imports. | |
from SocketServer import ThreadingMixIn | |
import BaseHTTPServer | |
import SimpleHTTPServer | |
import sys | |
import json | |
import os | |
from os.path import (join, exists, dirname, abspath, isabs, sep, walk, splitext, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mod_prop import mod_property, cached_mod_property | |
@mod_property | |
def my_prop(): | |
print('my_prop called') | |
return 42 | |
@cached_mod_property | |
def my_cached_prop(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
�)�S/home/pankaj/code/pyenv/lib64/python3.11/site-packages/pandas/core/dtypes/dtypes.pyi7 �PeriodDtype)� r g���>g���V-?{��~� �*<built-in method builtins.__build_class__>)r r g���>g���V-?0)�/usr/lib64/python3.11/copy.py�B �copy)r r g(&e&�>gu�����>{��U/home/pankaj/code/pyenv/lib64/python3.11/site-packages/pandas/compat/pickle_compat.pyr �<module>)r r g(&e&�>gu�����>0)�!/usr/lib64/python3.11/warnings.pyi� � __enter__)� r g9?�>�>g���{�?{��O/home/pankaj/code/pyenv/lib64/python3.11/site-packages/pandas/_config/config.py� �_set_option)� r g�G�xP�>gA��H���>��R/home/pankaj/code/pyenv/lib64/python3.11/site-packages/pandas/core/indexes/base.pyi� �_with_infer)� r g?K6V�>g�+8�/6�>0)�#/usr/lib64/python3.11/re/_parser.pyi� � | |
_parse_sub)�1 � gh�Q�3G?g ����?{�r i� �parse)r r g����B4?g ����?�r i� �_parse)�_ �4 g�:�%:?g:����Rz?0)r � �filterwarnings)� r& |