https://github.com/simonhaenisch/md-to-pdf https://mermaid.js.org/
gantt
section Section
Completed :done, des1, 2014-01-06,2014-01-08https://github.com/simonhaenisch/md-to-pdf https://mermaid.js.org/
gantt
section Section
Completed :done, des1, 2014-01-06,2014-01-08| ##Some points to mention... | |
| ## | |
| ##The model knows nothing about the view or the controller. | |
| ##The view knows nothing about the controller or the model. | |
| ##The controller understands both the model and the view. | |
| ## | |
| ##The model uses observables, essentially when important data is changed, | |
| ##any interested listener gets notified through a callback mechanism. | |
| ## | |
| ##The following opens up two windows, one that reports how much money you |
| # Install tmux 2.8 on Centos | |
| # install deps | |
| yum install gcc kernel-devel make ncurses-devel | |
| # cd src | |
| cd /usr/local/src | |
| # DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
| curl -LO https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz |
A rather dirty way to patch module code at runtime.
| #!/usr/bin/env python | |
| # Built-in modules | |
| import logging | |
| import Tkinter | |
| import threading | |
| class TextHandler(logging.Handler): | |
| """This class allows you to log to a Tkinter Text or ScrolledText widget""" | |
| def __init__(self, text): |
| from Tkinter import * | |
| root = Tk() | |
| w = Label(root, text="Hello, world!") | |
| root.overrideredirect(True) | |
| root.geometry("{0}x{1}+0+0".format(root.winfo_screenwidth(), root.winfo_screenheight())) | |
| root.focus_set() # <-- move focus to this widget | |
| root.bind("<Escape>", lambda e: e.widget.quit()) | |
| w.pack() |
| /* | |
| To test that the Linux framebuffer is set up correctly, and that the device permissions | |
| are correct, use the program below which opens the frame buffer and draws a gradient- | |
| filled red square: | |
| retrieved from: | |
| Testing the Linux Framebuffer for Qtopia Core (qt4-x11-4.2.2) | |
| http://cep.xor.aps.anl.gov/software/qt4-x11-4.2.2/qtopiacore-testingframebuffer.html | |
| */ |
| body { | |
| font-family: Helvetica, arial, sans-serif; | |
| font-size: 14px; | |
| line-height: 1.6; | |
| padding-top: 10px; | |
| padding-bottom: 10px; | |
| background-color: white; | |
| padding: 30px; } | |
| body > *:first-child { |
| #!/bin/sh | |
| SESSION_NAME="big_red" | |
| cd ~/Sites/within3/big_red | |
| tmux has-session -t ${SESSION_NAME} | |
| if [ $? != 0 ] | |
| then |