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
from Foundation import * | |
from AppKit import * | |
from Quartz import * | |
def mkimg(w, h): | |
img = NSImage.alloc().initWithSize_((w, h)) | |
return img | |
def saverep(rep, path): | |
rep.representationUsingType_properties_(NSPNGFileType, None) \ |
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
// memchr / strchr benchmark | |
// clang -O2 -o chr_bench chr_bench.cc | |
// | |
// Includes a glibc memchr implementation for comparison, which makes this | |
// benchmark GPL-licensed I believe. | |
// Output on my system (OS X 10.7.3): | |
// stupid_memchr: 380.0us | |
// glibc_memchr: 105.0us | |
// memchr: 566.0us |
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
hummer:src thakis$ time ninja -C out/Release chrome | |
ninja: Entering directory `out/Release' | |
[151/9970] LIBTOOL-STATIC libwebkit_system_interface.a, POSTBUILDS | |
libtool: warning for library: libwebkit_system_interface.a the table of contents is empty (no object file members in the library define global symbols) | |
[444/9970] MACTOOL copy-bundle-resource ../../breakpad/src/client/mac/sender/Breakpad.xib | |
/* com.apple.ibtool.document.notices */ | |
/Volumes/MacintoshHD2/src/chrome-git/src/out/Release/../../breakpad/src/client/mac/sender/Breakpad.xib:48: note: This view is clipping its content. | |
[590/9970] OBJCXX obj/breakpad/src/common/mac/breakpad_utilities.MachIPC.o | |
../../breakpad/src/common/mac/MachIPC.mm:190:18: warning: 'bootstrap_register' is deprecated [-Wdeprecated-declarations] | |
init_result_ = bootstrap_register(bootstrap_port, |
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
let g:cr_root = '/Users/thakis/src/chrome-git/src/' | |
let g:cr_builddb = '/Users/thakis/src/chrome-git/src/all-builddb.sqlite' | |
fu! g:clang_per_file_user_options(path) | |
if a:path =~ g:cr_root | |
let l:path = a:path[strlen(g:cr_root):] | |
let l:cmd = 'sqlite3 ' . g:cr_builddb . | |
\' ''' . 'select command from gcc_build_commands join filenames ' . | |
\ 'on filename_input_id = filenames.rowid where name = "' . | |
\ l:path . |
NewerOlder