Tsuyoshi Shinjo (SHINJO)
- Affliated High School of Hishi-Nippon Junior College
- Hanshin Tigers
- Mets
- Giants
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 --git a/configure b/configure | |
index a1e1f5e..9d5d6e0 100755 | |
--- a/configure | |
+++ b/configure | |
@@ -12,7 +12,6 @@ QXT_MODULES="docs berkeley core designer gui network sql web zeroconf" | |
if uname -a | grep -iq Darwin; then | |
QXT_MAC=1 | |
DEFAULT_LIBS="/Library/Frameworks" | |
- QMAKE_PARAMS="-spec macx-g++" | |
NO_XRANDR=1 |
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 | |
# -*- coding: utf-8 | |
import os | |
from threading import Timer | |
last_file = 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 PySide.QtCore import * | |
from PySide.QtGui import * | |
class KeyListener(QObject): | |
def eventFilter(self, obj, event): | |
if event.type() == QEvent.KeyPress: | |
if event.key() == Qt.Key_Control: | |
print('Control pressed') |
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 -r 3d7b209ee18c -r bf1b3772b917 src/gui/qxtglobalshortcut_mac.cpp | |
--- a/src/gui/qxtglobalshortcut_mac.cpp Mon May 10 22:40:42 2010 +0300 | |
+++ b/src/gui/qxtglobalshortcut_mac.cpp Wed Nov 17 17:28:04 2010 +0200 | |
@@ -69,63 +69,118 @@ | |
{ | |
UTF16Char ch; | |
// Constants found in NSEvent.h from AppKit.framework | |
- if (key == Qt::Key_Up) ch = 0xF700; | |
- else if (key == Qt::Key_Down) ch = 0xF701; | |
- else if (key == Qt::Key_Left) ch = 0xF702; |
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
{ | |
"default": "61.221.43.43", | |
"databases": { | |
"61.221.43.43": { | |
"driver": "QMYSQL", | |
"address": "61.221.43.43", | |
"username": "__USERNAME_HERE__", | |
"password": "__PASSWORD_HERE__" | |
}, | |
"192.168.1.121": { |
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
{% comment %} | |
templates/base.html | |
{% endcomment %} | |
{% load menu_tags %} | |
{% main_menu %} {# This line renders the menu #} |
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
{% with path=request.path %} | |
<li{% ifequal path '/' %} class="current"{% endifequal %}><a href="/">Home</a></li> | |
<li{% ifequal path '/about/' %} class="current"{% endifequal %}><a href="/about/">About</a></li> | |
{% endwith %} |
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 | |
# -*- coding: utf-8 -*- | |
import urllib | |
import HTMLParser | |
OUTPUT_PATH = None | |
URL = None | |
# Set URL here |
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 django.template import ( | |
TemplateSyntaxError, Library, Node, Variable, Token, TOKEN_BLOCK | |
) | |
register = Library() | |
@register.tag(name='inject') | |
def inject(parser, token): |