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 -*- | |
# | |
""" | |
Delphi用4BitBMPアイコンからアルファ付きのpngに変換 | |
左下ピクセルが透明色 | |
""" | |
from os.path import basename, splitext | |
from PIL import Image | |
from glob import iglob |
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 -*- | |
# | |
""" | |
tableタグでドット絵 | |
""" | |
import sys | |
from PIL import Image | |
header = '''\ |
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 -*- | |
# | |
from PySide import QtCore, QtGui | |
from PySide.QtCore import Qt | |
import selwinui | |
class SelRect(QtGui.QGraphicsRectItem): | |
def __init__(self, *args): | |
super(SelRect, self).__init__(*args) |
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 | |
import wx | |
import wx.gizmos as gizmos | |
from wx.lib.agw.multidirdialog import MultiDirDialog | |
class TreeItem(object): | |
__slots__ = ['item', 'lastdir'] |
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
=== modified file 'dulwich/client.py' | |
--- dulwich/client.py 2011-01-30 17:23:00 +0000 | |
+++ dulwich/client.py 2011-03-27 01:49:04 +0000 | |
@@ -338,8 +338,45 @@ | |
stdout=subprocess.PIPE) | |
return SubprocessWrapper(proc) | |
+class ParamikoWrapper(object): | |
+ """A socket-like object that talks to a subprocess via pipes.""" | |
+ |
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
namespace getwr | |
import System | |
import System.Runtime.InteropServices | |
[StructLayout(LayoutKind.Sequential)] | |
struct RECT: | |
public Left as int | |
public Top as int | |
public Right as int |
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
namespace chwp | |
import System | |
import System.Text | |
#import System.Collections | |
import System.Runtime.InteropServices | |
import System.IO | |
import Microsoft.Win32 | |
#import System.Linq.Enumerable |
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 scala.collection.Seq | |
object Main { | |
def main(args: Array[String]): Unit = { | |
dim(readInt) | |
} | |
def dim(num: Int): Unit = { | |
def put[A](xs: Seq[A]) = println(xs mkString " ") | |
def nop(c: Int) = { | |
require(c >= 0); List.fill(c){0} | |
} |
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
--- tree.c.orig 2011-06-12 22:08:28.641125000 +0900 | |
+++ tree.c 2011-06-12 22:10:06.656750000 +0900 | |
@@ -230,6 +230,8 @@ | |
mb_cur_max = 1; | |
#endif | |
+ charset = "ascii"; | |
+ | |
memset(utable,0,sizeof(utable)); | |
memset(gtable,0,sizeof(gtable)); |
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
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); | |
/* move bookmark toolbar up */ | |
#PersonalToolbar { | |
-moz-box-ordinal-group: 5 !important; | |
} |
OlderNewer