This file contains hidden or 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
| PS ultrajson\tests> python .\benchmark.py | |
| Ready? Configure affinity and priority, starting in 20... | |
| Array with 256 utf-8 strings: | |
| ujson encode : 4246.28490 calls/sec | |
| simplejson encode : 1067.80558 calls/sec | |
| cjson encode : 66.05020 calls/sec | |
| yajl encode : 4524.88778 calls/sec | |
| ujson decode : 842.10526 calls/sec | |
| cjson decode : 521.64843 calls/sec | |
| simplejson decode : 269.79631 calls/sec |
This file contains hidden or 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 django.db import models | |
| from taggit.models import TagBase,GenericTaggedItemBase,ItemBase | |
| class GeneralTag(TagBase): | |
| class Meta: | |
| verbose_name = 'タグ' | |
| verbose_name_plural = verbose_name |
This file contains hidden or 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 -*- |
This file contains hidden or 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
| #!/bin/sh | |
| # | |
| # Startup script for TwitterIrcGateway | |
| # | |
| # chkconfig: - 85 15 | |
| # description: TIG server startup and controll script. | |
| # processname: TwitterIrcGatewayCLI | |
| # pidfile: /var/run/tig.pid | |
| # Source function library. |
This file contains hidden or 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 -*- | |
| __author__ = 'PyYoshi' | |
| import time | |
| import os | |
| import warnings | |
| from subprocess import Popen, STDOUT, PIPE |
This file contains hidden or 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
| #ifndef MEMORY_LEAK_H | |
| #define MEMORY_LEAK_H | |
| #define _CRTDBG_MAP_ALLOC | |
| #include <crtdbg.h> | |
| #ifdef _DEBUG | |
| #define new new(_NORMAL_BLOCK,__FILE__,__LINE__) | |
| #endif | |
| #endif |
This file contains hidden or 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
| CyanogenMODでauのキャリアメールを使用する方法 | |
| 元ネタはhomarさんの記事ttp://homar.blog.fc2.com/blog-entry-90.html (削除済み) | |
| ----------------------------------------------------------------------------------- | |
| ・手順 | |
| キャリアメールが使える標準ROMの/system/フォルダから以下のファイルをPCに転送する | |
| /system/app/AuManagementSystem_****.apk | |
| /system/app/DEmojiProvider.apk |
This file contains hidden or 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
| $ sudo apt-get install build-essential git-core p7zip-full terminator vim vim-gtk gnome-font-viewer fonts-vlgothic ibus-mozc mozc-server mozc-utils-gui pysdm zsh ia32-libs libncurses5-dev zlib1g-dev flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev python-dev xsltproc libxml2-utils curl pngcrush schedtool tofrodos g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5 lib32readline6-dev gcc-4.4-multilib g++-4.4-multilib gcc-4.5-multilib g++-4.5-multilib gcc-4.6-multilib g++-4.6-multilib squashfs-tools zlib1g-dev:i386 libreadline6-dev:i386 gcc g++ subversion ssh-askpass | |
| //jdkをdlして/usr/lib/jvmに置く | |
| $ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_35/bin/javac 1 | |
| $ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_35/bin/java 1 | |
| $ sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_35/bin/javaws 1 | |
| $ sudo vim /etc/udev/rules.d/51-android.rules | |
| SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev" |
This file contains hidden or 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
| for i in range(1,51):print"FizzBuzz"[i*i%3*4:8--i**4%5] or i |
This file contains hidden or 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
| class isMobile | |
| constructor: ()-> | |
| @reAndroid = new RegExp(/Android/i) | |
| @reBlackBerry = new RegExp(/BlackBerry/i) | |
| @reIOSPhone = new RegExp(/iPhone|iPod/i) | |
| @reIOSTablet = new RegExp(/iPad/i) | |
| @reOperaMini = new RegExp(/Opera Mini/i) | |
| @reOperaMobile = new RegExp(/Opera Mobi/i) | |
| @reOperaTablet = new RegExp(/Opera Tablet/i) | |
| @reWindows = new RegExp(/Windows Phone|IEMobile/i) |