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 (pyqtSlot, pyqtSignal, QObject, QSize, QUrl, | |
SIGNAL) | |
from PyQt4.QtGui import (QApplication, QImage, QPainter) | |
from PyQt4.QtWebKit import QWebPage | |
class Thumbnailer(QObject): | |
finished = pyqtSignal() | |
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
#!/usr/bin/env python | |
import os | |
import sys | |
import subprocess | |
APP = 'demo_app' | |
REMOTE_USER = 'gfreezy' | |
REMOTE_HOST = 'norida.me' | |
REMOTE_DIR = '/home/gfreezy/rails/' |
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
Show hidden characters
[ | |
{ | |
"caption": "Sync: Pull", | |
"command": "sync_pull" | |
} | |
,{ | |
"caption": "Sync: Push", | |
"command": "sync_push" | |
} | |
] |
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
(require 'anything) | |
(defun list-project-files (repo) | |
"Return an alist of all filenames in the project and their path." | |
(split-string (shell-command-to-string (format "cd %s && git ls-files" repo)))) | |
(defun find-git-repo (dir) | |
"Find base git directory" | |
(if (string= "/" dir) | |
(message "Not In A Git Repository") | |
(if (file-exists-p (expand-file-name ".git/" 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
# Contributor: zhuqin <zhuqin83@gmail.com> | |
# Contributor: Mic92 <jthalheim@gmail.com> | |
pkgname=emacs-gtk3-git | |
pkgver=20111204 | |
pkgrel=1 | |
pkgdesc="Gnu Emacs with gtk3 enabled from Git and use LC_CTYPE=zh_CN.utf8 for prefix when executing Emacs" | |
url="http://www.gnu.org/software/emacs/emacs.html" | |
license=('GPL') |
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
<i class="macbook"></i> |
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
<i class="macbook"></i> |
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
<i class="macbook"></i> |
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 bash | |
# exit when no parameter provided | |
test -z "$*" && exit 0 | |
id=`echo "$*" | md5sum | cut -d " " -f 1` | |
idfile="/tmp/$id" | |
if [ ! -e $idfile ]; then | |
touch $idfile | |
$@ | |
rm $idfile | |
exit -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
var pushRight = slate.operation("push", { | |
"direction": "right", | |
"style": "bar-resize:screenSizeX/2" | |
}); | |
var pushLeft = slate.operation("push", { | |
"direction": "left", | |
"style": "bar-resize:screenSizeX/2" | |
}); |
OlderNewer