Skip to content

Instantly share code, notes, and snippets.

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',
\}
\}
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
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;
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;
#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;
<?php
require_once 'Benchmark/Timer.php';
$bm = new Benchmark_Timer();
$bm->start();
$memcache = new Memcache();
$memcache->addServer('localhost', 1978);
$memcache->flush();
require 'rubygems'
require 'mechanize'
require 'open-uri'
username = ''
password = ''
#Mechanizeの設定
agent = Mechanize.new
agent.user_agent_alias = 'Mac Safari'
use warnings;
use Plack::Request;
use Data::Dumper;
use Path::Class qw/file/;
use File::Copy;
use Cwd;
return sub {
my $env = shift;
use strict;
use warnings;
use Plack::Request;
use Data::Dumper;
use Path::Class qw/file/;
use File::Copy;
use Cwd;
return sub {
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