Markdown is a lightweight markup language that you can use to add formatting elements to plaintext text documents. Created by John Gruber in 2004, Markdown is now one of the worldβs most popular markup languages.
# This is an tagMarkdown is a lightweight markup language that you can use to add formatting elements to plaintext text documents. Created by John Gruber in 2004, Markdown is now one of the worldβs most popular markup languages.
# This is an tag| """ | |
| Keywords: Python, gtk3, random, depth, treeview | |
| A small example on adding random depth items to a gtk.treeview | |
| To run this example, you need this file as well as the 'traverse_random_depth_nested_classes.py' | |
| """ | |
| import gi | |
| gi.require.version('Gtk', '3.0') | |
| from gi.repository import Gtk |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| import re | |
| TOKENS = {"EXT_FUNC": "extern"} | |
| function_extern = re.compile(r'^[\D+\s+]+[a-zA-Z]+[\s+|\(\w\W\)]+;|\s+[\D+]') | |
| t = "void somefunction(p,p);" | |
| t1 = "GType gtk_widget_get_type (void) G_GNUC_CONST;" | |
| def external_func(txt): | |
| x = re.search(function_extern, txt) |
| #!/usr/bin/env python | |
| """ | |
| StarHScale a Horizontal slider that uses stars | |
| Copyright (C) 2006 Mark Mruss <selsine@gmail.com> | |
| This library is free software; you can redistribute it and/or | |
| modify it under the terms of the GNU Lesser General Public | |
| License as published by the Free Software Foundation; either |
| from pathlib import Path | |
| import configparser | |
| home = str(Path.home()) | |
| config = configparser.RawConfigParser() | |
| with open(home + "/.wakatime.cfg", "r") as cfgfile: | |
| config.read_file(cfgfile) | |
| print(config.get("settings", "api_key")) |
| import csv | |
| import json | |
| from flask import Flask, render_template | |
| # reference: https://stackoverflow.com/questions/29631711/python-to-parent-child-json | |
| # create a helper class for each tree node | |
| class Node(object): | |
| # generate new node | |
| def __init__(self, cluster): |