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
#!/bin/sh | |
PREFIX=/path/to/prefix | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin | |
# configure for iPhone device | |
mkdir -p build_for_armv6 | |
pushd build_for_armv6 | |
../configure --prefix=${PREFIX} \ | |
--host=arm-apple-darwin \ | |
--enable-static \ |
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
<html> | |
<body> | |
<p>Drag next link to Bookmark then sync with iPhone.</p> | |
<a href="javascript:(function(){var%20m=document.createElement(%22meta%22);m.setAttribute(%22name%22,%22viewport%22);m.setAttribute(%22content%22,%22width=device-width%22);document.getElementsByTagName(%22head%22)[0].appendChild(m);})();">Set Viewport</a> | |
</body> | |
</html> |
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
--- source/ext/openssl/openssl_missing.h.orig 2010-04-20 11:15:48.000000000 -0700 | |
+++ source/ext/openssl/openssl_missing.h 2010-04-20 11:16:05.000000000 -0700 | |
@@ -164,11 +164,11 @@ | |
#endif | |
#if !defined(HAVE_BN_RAND_RANGE) | |
-int BN_rand_range(BIGNUM *r, BIGNUM *range); | |
+int BN_rand_range(BIGNUM *r, const BIGNUM *range); | |
#endif | |
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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'sqlite3' | |
require 'fileutils' | |
ADDRESS_BOOK_DIR = Dir.pwd | |
ABCDDB_PATH = File.join(ADDRESS_BOOK_DIR, "AddressBook-v22.abcddb") | |
unless File.exist?(ABCDDB_PATH) |
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
#!/bin/sh | |
echo '*{font-family:"Lucida Grande" !important;}' > ~/Library/Application\ Support/AppStore/UserStyleSheet.css | |
defaults write com.apple.AppStore WebKitUserStyleSheetEnabledPreferenceKey -bool true | |
defaults write com.apple.AppStore WebKitUserStyleSheetLocationPreferenceKey "~/Library/Application Support/AppStore/UserStyleSheet.css" |
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
javascript:(function(){var%20ls=[%22ja%22,%22en%22],re=/\blr=lang_([a-zA-Z][a-zA-Z])\b/,w=window,h=w.location.href,m=h.match(re);w.location=m?h.replace(re,%22lr=lang_%22+(ls[ls.indexOf(m[1])+1]||ls[0])):h+(h.match(/[?#]/)?%22&%22:%22?%22)+%22lr=lang_%22+ls[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
Index: renderer/mac/CandidateController.mm | |
=================================================================== | |
--- renderer/mac/CandidateController.mm (revision 57) | |
+++ renderer/mac/CandidateController.mm (working copy) | |
@@ -91,6 +91,25 @@ | |
} | |
} | |
+ // Make a visible rect which doesn't include Dock and menu bar area. | |
+ CGRect mainDisplayRect = CGDisplayBounds(CGMainDisplayID()); |
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
#!/bin/sh | |
/usr/libexec/PlistBuddy -c "Delete :OSAXHandlers:Events:SIMeleop" "/Library/ScriptingAdditions/SIMBL.osax/Contents/Info.plist" |
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
<!DOCTYPE html> | |
<html> | |
<!-- | |
Copyright (c) 2011 Yoshimasa Niwa | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to |
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 <AddressBook/AddressBook.h> | |
int main() { | |
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; | |
ABAddressBook *addressBook = [ABAddressBook sharedAddressBook]; | |
ABSearchElement *searchElement = [ABPerson searchElementForProperty:kABURLsProperty | |
label:nil | |
key:nil | |
value:@"http://" |
OlderNewer