Skip to content

Instantly share code, notes, and snippets.

View ikeikeikeike's full-sized avatar
🈵
Working

ikedat ikeikeikeike

🈵
Working
  • 3C
  • Tokyo, Japan
  • 14:41 (UTC +09:00)
View GitHub Profile
@ikeikeikeike
ikeikeikeike / gist:2260888
Created March 31, 2012 08:36
run qtimpl.py
redo: [u'comamnd1'], redo-text: comamnd1
1
redo: [u'comamnd1', u'comamnd2'], redo-text: comamnd2
2
undo: [u'comamnd1'], undo-text: comamnd2
undo: [], undo-text: comamnd1
redo: [u'comamnd1'], redo-text: comamnd1
2
redo: [u'comamnd1', u'comamnd3'], redo-text: comamnd3
2
@ikeikeikeike
ikeikeikeike / gist:2260968
Created March 31, 2012 08:45
QTextEdit at GUI
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from PySide.QtGui import (QMainWindow, QWidget, QApplication, QVBoxLayout, QTextEdit,
QPushButton, QDesktopServices)
from PySide.QtCore import QObject, SIGNAL
import sys
class MyMainWindow(QMainWindow):
""" main """
@ikeikeikeike
ikeikeikeike / gist:2261293
Created March 31, 2012 09:36
swing undo window
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
@ikeikeikeike
ikeikeikeike / gist:2292002
Created April 3, 2012 13:30
tmux new-window + ssh + top command
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess
ssh_windows = {
"host1": "127.0.0.1",
"host2": "123.123.123.123",
"host3": "12.12.12.12",
}
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
# simple simple*2 createtags-ruby
# ===================================
# github: https://github.com/ikeikeikeike/home/tree/develop/bin
# .. code-block:: bash
# **Usage**
# -*- coding: utf-8 -*-
# simple simple*2 createtags-ruby
export rvm_path=$HOME/.rvm
@ikeikeikeike
ikeikeikeike / shell
Created April 4, 2012 02:44
tmux new-window
#!/usr/bin/env zsh
WN=`uuidgen | cut -c1-10`
cd /opt/local/bin; tmux new-window -n $WN;
case "$@" in
#
home); tmux send-keys -t$WN 'cd ~; clear' C-m ;;
www); tmux send-keys -t$WN 'cd /var/www; clear' C-m ;;
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
pytree
=================================================================================
github: https://github.com/ikeikeikeike/home/tree/develop/bin
run command::
$ pytree /etc/mail
$ sudo aptitude install kvm