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
[user] | |
name = x | |
email = x | |
[push] | |
default = simple | |
followTags = true | |
[diff] | |
tool = vscode | |
[merge] | |
tool = vscode |
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 os | |
import re | |
cn_dir = '~/github/tomato-gui' | |
en_dir = '~/github/tomato-gui-en' | |
cn_dir = os.path.expanduser(cn_dir) | |
en_dir = os.path.expanduser(en_dir) |
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
# build serf lib first | |
scons PREFIX=$HOME/Downloads/serf-install | |
scons install | |
# run one line command with temp env var | |
( make distclean ; setenv LDFLAGS -Wl,-rpath,\\\$\$ORIGIN/../lib ; ./configure --prefix=$HOME/svn --with-serf=$HOME/Downloads/serf-install ; make ; make install) |
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
cd /home/oglop/tomato/release/src-rt/router/libjson-c && CC=mipsel-uclibc-gcc STRIP=mipsel-uclibc-strip \ | |
./autogen.sh && \ | |
./configure --host=mipsel-linux --build=x86_64-redhat-linux --prefix=/usr | |
autoreconf: Entering directory `.' | |
autoreconf: configure.ac: not using Gettext | |
autoreconf: running: aclocal | |
autoreconf: configure.ac: tracing | |
autoreconf: configure.ac: not using Libtool | |
autoreconf: running: /usr/bin/autoconf | |
autoreconf: running: /usr/bin/autoheader |
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 | |
class TextEdit(QtGui.QTextEdit): | |
''' | |
QTextEdit extended with a signal 'lineNumbersChanged' which gets triggered when the line-numbers of the visible text change. | |
Such functionality already exists for QPlainTextEdit via firstVisibleBlock().blockNumber() and lastVisibleBlock().blockNumber() | |
However these functions are not accessible using QTextEdit and PyQt. | |
The signal can be used to update custom widgets that compliment the QTextEdit such as lineNumberWidgets or miniMapWidgets. | |
''' | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>gifplayer</title> | |
<base href="http://rubentd.com"></base> | |
<link rel="stylesheet" type="text/css" href="bower_components/jquery.gifplayer/dist/gifplayer.css"></link> | |
<script type="text/javascript" src="bower_components/jquery/dist/jquery.min.js"></script> | |
<script type="text/javascript" src="bower_components/jquery.gifplayer/dist/jquery.gifplayer.js"></script> | |
<script> |
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
<html> | |
<head> | |
<title></title> | |
<meta content=""> | |
<style></style> | |
</head> | |
<body> | |
page 1 | |
<a href="2.html"> open page 2</a> | |
</body> |
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
ins.play-gif{ | |
position: absolute; | |
font-family: Arial, sans serif; | |
width: 50px; | |
height: 50px; | |
line-height: 52px; | |
text-align: center; | |
background: #222; | |
font-size: 18px; |
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.QtWebKit import QWebView, QWebInspector, QWebSettings | |
from PyQt4.QtGui import QApplication, QDialog, QHBoxLayout | |
from PyQt4.QtCore import QUrl, QByteArray, QString | |
class Dialog(QDialog): | |
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 maya.OpenMayaUI | |
import maya.cmds as cmds | |
import sip | |
from PyQt4.QtGui import * | |
from PyQt4.QtCore import * | |
mainWindow = QMainWindow() | |
centralWidget = QListView() | |
mainWindow.setCentralWidget(centralWidget) | |
dockWidget = QDockWidget("DockWidget", mainWindow) |