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
let g:quickrun_config = { | |
\ 'objc': { | |
\'command': 'gcc', | |
\'exec': ['%c %s -o %s:p:r -framework Cocoa', '%s:p:r %a', 'rm -f %s:p:r'], | |
\'tempfile': '{tempname()}.c', | |
\} | |
\} |
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
autocmd User Symfony14 call s:SetSymofnyTag() | |
function! s:SetSymofnyTag() | |
if exists('b:my_symfony_tags') | |
execute 'setlocal tags+='.b:my_symfony_tags | |
else | |
setlocal tags+=$HOME/tags/symfony14.tags | |
endif | |
endfunction |
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
use strict; | |
use warnings; | |
use Net::Twitter; | |
use Path::Class; | |
use Array::Diff; | |
use Config::Pit; | |
use Getopt::Long; | |
use LWP::Simple; | |
use File::Temp; |
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
var table = document.getElementsByTagName("table"); | |
var array = table[2].children[0].children; | |
var obj = {sum: 0}; | |
for (var i = 0, len = array.length; i < len; i++) { | |
var tr = array[i].children; | |
var clen = tr.length; | |
if (clen == 2) { | |
} else if (clen == 8) { | |
var n = parseFloat(tr[3].innerHTML); | |
var h = tr[2].innerHTML; |
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
#import <Cocoa/Cocoa.h> | |
#import <QTKit/QTKit.h> | |
#import <QTKit/QTCaptureSession.h> | |
#import <QTKit/QTCaptureDeviceInput.h> | |
#import <QTKit/QTCaptureView.h> | |
@interface CaptureTestAppDelegate : NSObject <NSApplicationDelegate> { | |
NSWindow *window; | |
QTCaptureSession *mCaptureSession; |
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
<?php | |
require_once 'Benchmark/Timer.php'; | |
$bm = new Benchmark_Timer(); | |
$bm->start(); | |
$memcache = new Memcache(); | |
$memcache->addServer('localhost', 1978); | |
$memcache->flush(); |
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
require 'rubygems' | |
require 'mechanize' | |
require 'open-uri' | |
username = '' | |
password = '' | |
#Mechanizeの設定 | |
agent = Mechanize.new | |
agent.user_agent_alias = 'Mac Safari' |
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
use warnings; | |
use Plack::Request; | |
use Data::Dumper; | |
use Path::Class qw/file/; | |
use File::Copy; | |
use Cwd; | |
return sub { | |
my $env = shift; |
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
use strict; | |
use warnings; | |
use Plack::Request; | |
use Data::Dumper; | |
use Path::Class qw/file/; | |
use File::Copy; | |
use Cwd; | |
return sub { |
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
function #calls time memory time memory | |
---------------------------------------------------------------------------------------------------------------------- | |
array_merge 1087 0.0636 28792664 0.0636 28792664 | |
Doctrine_Core::autoload 66 0.1306 10121872 0.0811 7157728 | |
sfCoreAutoload->autoload 189 0.1204 8686872 0.0857 6638368 | |
include 13 0.0369 4164520 0.0059 2169736 | |
sfAutoload->loadClass 100 0.1038 7478408 0.0292 1900144 | |
preg_match_all 717 0.0562 1648736 0.0562 1648736 | |
file_get_contents |