Skip to content

Instantly share code, notes, and snippets.

Juan Carlos Jiménez Palantir555

Block or report user

Report or block Palantir555

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .vimrc
"" Custom vim settings
"No need to be vi compatible.
:set nocompatible
"Searching
:set incsearch "Turn on incremental searching
:set ignorecase "Ignore case when searching
:set smartcase "Ignore case when typing lowercase,
"otherwise match case
View will_crash.cpp
QPushButton = *myButton;
myGridLayout->addWidget (myButton, 0, 0, Qt::AlignLeft);
View wont_crash.cpp
QPushButton = *myButton;
myButton = new QPushButton ("button's text");
myGridLayout->addWidget (myButton, 0, 0, Qt::AlignLeft);
View gist:5198821
myTextEdit->moveCursor (QTextCursor::End);
myTextEdit->insertPlainText (myString);
myTextEdit->moveCursor (QTextCursor::End);
View gist:5198993
QTextCursor prev_cursor = myTextEdit->textCursor();
myTextEdit->moveCursor (QTextCursor::End);
myTextEdit->insertPlainText (myString);
myTextEdit->setTextCursor (&prev_cursor);
View exp_cmd.sh
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
View PyQt_test.py
#Code copied from: http://bit.ly/13yRYU4
#And later modified a bit.
from PyQt4 import QtGui
from PyQt4 import QtCore
from PyQt4.QtCore import pyqtSlot,SIGNAL,SLOT
import sys
class MyMainWindow(QtGui.QMainWindow):
View prof.sh
#####
# The path to use the PyQt module and others installed using homebrew
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
#####
You can’t perform that action at this time.