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
diff -aur '--exclude=.git' /home/oglop/tomato/tomato_intact/release/src/btools/libfoo.pl /home/oglop/tomato/tomato_latest/release/src/btools/libfoo.pl | |
--- /home/oglop/tomato/tomato_intact/release/src/btools/libfoo.pl 2015-09-16 11:51:50.750693058 +0800 | |
+++ /home/oglop/tomato/tomato_latest/release/src/btools/libfoo.pl 2015-09-16 15:06:21.243200192 +0800 | |
@@ -493,6 +493,17 @@ | |
# <>; | |
return 0; | |
} | |
+ | |
+ # keep this symbol for libc | |
+ my @keep_symbols=("fchdir"); |
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
# | |
# Automatically generated make config: don't edit | |
# Version: 0.9.33.2 | |
# Sun Nov 29 23:08:10 2015 | |
# | |
# TARGET_alpha is not set | |
# TARGET_arm is not set | |
# TARGET_avr32 is not set | |
# TARGET_bfin is not set | |
# TARGET_c6x is not set |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Crosstool-NG Configuration | |
# | |
CT_CONFIGURE_has_xz=y | |
CT_CONFIGURE_has_svn=y | |
CT_MODULES=y | |
# | |
# Paths and misc options |
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
#!/bin/bash | |
EDIT=0 | |
while (($#)) ; do | |
[[ ${1:0:1} != - ]] && break | |
case ${1:1} in | |
e) EDIT=1 ; shift ;; | |
*) echo "Unknown option $1, ignoring" ; shift ;; | |
esac |
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 | |
"""PyQt4 port of the richtext/syntaxhighlighter example from Qt v4.x""" | |
from PyQt4 import QtCore, QtGui | |
class MainWindow(QtGui.QMainWindow): | |
def __init__(self, parent=None): | |
super(MainWindow, self).__init__(parent) |
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
# editor.py | |
from PyQt4 import QtGui | |
import syntax | |
app = QtGui.QApplication([]) | |
editor = QtGui.QPlainTextEdit() | |
highlight = syntax.PythonHighlighter(editor.document()) | |
editor.show() |
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 PyQt4 import QtGui,QtCore | |
from maya import cmds | |
import maya.OpenMayaUI as apiUI | |
import sip | |
ptr = apiUI.MQtUtil.mainWindow() | |
mwin=sip.wrapinstance(long(ptr), QtCore.QObject) | |
cmdReporters = cmds.lsUI(type='cmdScrollFieldReporter') | |
cmdReporter = mwin.findChild(QtGui.QTextEdit, cmdReporters[0]) |
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 | |
import sys | |
from PyQt4.QtGui import * | |
from PyQt4.QtCore import * | |
class MyModel(QAbstractListModel): | |
def __init__(self, parent=None): |
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
import sys | |
from PyQt4.QtCore import * | |
from PyQt4.QtGui import * | |
data = {'level1': ['1', '2', '3'], | |
'level2': ['4', '5', '6'], | |
'level3': ['7', '8', '9']} | |
class Window(QMainWindow): |
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
import sys | |
from PyQt4.QtCore import * | |
from PyQt4.QtGui import * | |
class Window(QMainWindow): | |
'This time I try to put the table populating code in main ui' | |
def __init__(self, parent=None): |