- 説明(このドキュメント)
- Windows 用 EXE ファイル
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 Image | |
import glob | |
import os.path | |
for infile in glob.glob("*.jpg"): | |
file, ext = os.path.splitext(infile) | |
im = Image.open(infile) | |
pixels = im.load() | |
(w, h) = im.size | |
for y in range(h): |
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 Image | |
import ImageDraw | |
import shutil | |
import tempfile | |
import os | |
img = Image.new('RGB', (5224, 5224), (220, 230, 232)) | |
dr = ImageDraw.Draw(img) | |
dr.rectangle(((1000, 1000), (4999, 4999)), (255, 255, 255), (255, 255, 255)) | |
dr.rectangle(((1010, 1010), (1019, 1019)), (255, 0, 0), (255, 0, 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
use 5.012; | |
use warnings; | |
<>; | |
$/ = ''; | |
my $c; | |
while (<>) { | |
print 'Case #' . ++$c . ': '; | |
s/\s+/ /g; | |
if (/[OT]{4}|[OT](?:...[OT]){3}|[OT](?:....[OT]){3}|[OT](?:.....[OT]){3}/) { |
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/lib/watobo/core/session.rb b/lib/watobo/core/session.rb | |
index c7c1eeb..037a2ed 100644 | |
--- a/lib/watobo/core/session.rb | |
+++ b/lib/watobo/core/session.rb | |
@@ -19,6 +19,7 @@ | |
# along with WATOBO; if not, write to the Free Software | |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
# . | |
+@@user_id = 1 | |
module Watobo |
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
--- zend_alloc.c.org Wed Oct 17 18:21:42 2012 | |
+++ zend_alloc.c Sun Nov 04 22:56:22 2012 | |
@@ -263,17 +263,29 @@ | |
static zend_mm_segment* zend_mm_mem_win32_alloc(zend_mm_storage *storage, size_t size) | |
{ | |
- return (zend_mm_segment*) HeapAlloc((HANDLE)storage->data, HEAP_NO_SERIALIZE, size); | |
+ zend_mm_segment* segment; | |
+ | |
+ segment = (zend_mm_segment*) HeapAlloc((HANDLE)storage->data, HEAP_NO_SERIALIZE, size); |
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
<?php | |
/** | |
* Zend Framework | |
* | |
* LICENSE | |
* | |
* This source file is subject to the new BSD license that is bundled | |
* with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://framework.zend.com/license/new-bsd |
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
--- gitk.org Mon Jan 16 01:08:02 2012 | |
+++ gitk Fri Feb 10 18:23:31 2012 | |
@@ -1676,6 +1676,10 @@ | |
if {$i >= 0} { | |
set headline [string trimright [string range $headline 0 $i]] | |
} | |
+ set svnrev [lindex [regexp -linestop -inline {git-svn-id:.*@([[:digit:]]+)} $comment] 1] | |
+ if {$svnrev != {}} { | |
+ set headline "\[$svnrev\] $headline" | |
+ } |
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
overhead(shuffled ): 0.0017560 2420,3297,5637,1083,5790 | |
overhead(duplicated): 0.0017490 622,4325,1760,1691,4110 | |
overhead(sorted ): 0.0005720 1,2,3,4,5 | |
mergesort(shuffled ): 0.9389420 1,10,100,1000,10000 | |
mergesort(duplicated): 0.9406991 1,1,10,10,100 | |
mergesort(sorted ): 0.3923521 1,10,100,1000,10000 | |
schwartzian_transform(shuffled ): 0.6981239 1,10,100,1000,10000 | |
schwartzian_transform(duplicated): 0.6524200 1,1,10,10,100 | |
schwartzian_transform(sorted ): 0.6394210 1,10,100,1000,10000 | |
schwartzian_transform2(shuffled ): 0.6490870 1,10,100,1000,10000 |
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
(overhead): 0.012856006622314 | |
gettimeofday+list: 0.79171109199524 | |
gettimeofday: 0.78512001037598 | |
gettimeofday2: 0.77574801445007 | |
trim: 0.62337398529053 | |
substr: 0.63026404380798 | |
substr+createFromFormat: 0.60127902030945 | |
float: 0.59996008872986 | |
float2: 0.60790085792542 | |
float3: 0.60153198242188 |