A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
| // https://codepen.io/hartzis/pen/VvNGZP | |
| class ImageUpload extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| file: '', | |
| imagePreviewUrl: '' | |
| }; | |
| this._handleImageChange = this._handleImageChange.bind(this); | |
| this._handleSubmit = this._handleSubmit.bind(this); |
| from PyQt4 import QtGui, QtCore, uic | |
| def p(x): | |
| print x | |
| class MainWindow(QtGui.QMainWindow): | |
| def __init__(self): | |
| QtGui.QWidget.__init__(self) | |
| uic.loadUi('redirect.ui', self) |
| import com.sun.management.OperatingSystemMXBean; | |
| import javax.management.*; | |
| import javax.management.openmbean.CompositeDataSupport; | |
| import javax.management.remote.JMXConnector; | |
| import javax.management.remote.JMXConnectorFactory; | |
| import javax.management.remote.JMXServiceURL; | |
| import java.io.BufferedWriter; | |
| import java.io.File; | |
| import java.io.FileWriter; |
| #include <string.h> | |
| #include <stdio.h> | |
| #include <iostream> | |
| #include <fstream> | |
| #include <vector> | |
| #include "rapidxml-1.13/rapidxml.hpp" | |
| using namespace rapidxml; | |
| using namespace std; |