Skip to content

Instantly share code, notes, and snippets.

View omo's full-sized avatar

Hajime Morrita omo

  • Mountain View, CA
View GitHub Profile
@omo
omo / tedmp3.json
Created February 13, 2013 14:35
TED MP3 URLs
{"mp3":["http://video.ted.com/talks/podcast/audio/AdoraSvitak_2010.mp3","http://video.ted.com/talks/podcast/audio/AimeeMullins_2009.mp3","http://video.ted.com/talks/podcast/audio/AlGore_2006.mp3","http://video.ted.com/talks/podcast/audio/AlGore_2008.mp3","http://video.ted.com/talks/podcast/audio/AlGore_2009.mp3","http://video.ted.com/talks/podcast/audio/AlaindeBotton_2009G.mp3","http://video.ted.com/talks/podcast/audio/AlanRussell_2006.mp3","http://video.ted.com/talks/podcast/audio/AlanSiegel_2010.mp3","http://video.ted.com/talks/podcast/audio/AlexSteffen_2005.mp3","http://video.ted.com/talks/podcast/audio/AlexTabarrok_2009.mp3","http://video.ted.com/talks/podcast/audio/AmySmith_2006.mp3","http://video.ted.com/talks/podcast/audio/AmyTan_2008.mp3","http://video.ted.com/talks/podcast/audio/AndrewMwenda_2007G.mp3","http://video.ted.com/talks/podcast/audio/AnilGupta_2009I.mp3","http://video.ted.com/talks/podcast/audio/AnnaDeveareSmith_2005.mp3","http://video.ted.com/talks/podcast/audio/AnthonyAtala_2009P.mp3","ht
@omo
omo / .gitignore
Last active December 11, 2015 09:18
logs
project/project
project/target
target
tmp
.settings
@omo
omo / gist:3888055
Created October 14, 2012 08:50
Build Breakpad for Mac OS (on ML)
# install gyp.
$ git clone http://git.chromium.org/external/gyp.git
# checkout breakpad.
$ svn checkout http://src.chromium.org/svn/trunk/src/breakpad/
$ cd breakpad
$ svn co http://google-breakpad.googlecode.com/svn/trunk/src
$ vi breakpad.gyp # To comment out reference to parent (..) directories.
# generate xcodeproj and build it.
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/SocketServer.py", line 310, in process_request
self.finish_request(request, client_address)
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/SocketServer.py", line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/SocketServer.py", line 639, in __init__
self.handle()
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/BaseHTTPServer.py", line 343, in handle
self.handle_one_request()
@omo
omo / process.cpp
Created April 8, 2012 11:56
ProcessManager::resume
void ProcessManager::resume(ProcessBase* process)
{
...
// Now service the event.
try {
process->serve(*event);
} catch (const std::exception& e) {
std::cerr << "libprocess: " << process->pid
<< " terminating due to "
<< e.what() << std::endl;
@omo
omo / process.hpp
Created April 8, 2012 11:35
process.hpp
class ProcessBase : public EventVisitor
{
public:
ProcessBase(const std::string& id = "");
virtual ~ProcessBase();
UPID self() const { return pid; }
protected:
ASSERTION FAILED: m_isAnimating
../../Source/WebCore/svg/properties/SVGAnimatedPropertyTearOff.h(78) : virtual void WebCore::SVGAnimatedPropertyTearOff<WebCore::SVGLength>::animationEnded()
1 0x3bdb5a7f WebCore::SVGAnimatedPropertyTearOff<WebCore::SVGLength>::animationEnded()
2 0x3983f561 WebCore::notifyAnimatedPropertyAboutAnimationBeginEnd(WebCore::SVGAnimatedProperty*, WebCore::SVGAnimatedType*, WebCore::SVGElement*, WebCore::QualifiedName const&)
3 0x3983f731 WebCore::SVGAnimationElement::animationEnded(WebCore::SVGAnimatedProperty*)
4 0x3983410a WebCore::SVGAnimateElement::targetElementWillChange(WebCore::SVGElement*, WebCore::SVGElement*)
5 0x399a0422 WebCore::SVGSMILElement::resetTargetElement()
6 0x39854b72 WebCore::SVGDocumentExtensions::removeAllAnimationElementsFromTarget(WebCore::SVGElement*)
7 0x39873897 WebCore::SVGElement::removedFromDocument()
8 0x39953ecd WebCore::SVGStyledElement::removedFromDocument()
[12/5800] ACTION webkit_system_interface: Adjust_Visibility
FAILED: cd ../../Source/WebCore/WebCore.gyp; export SRCROOT=/Users/morrita/work/webkit/bob/out/Debug/../../Source/WebCore/WebCore.gyp; export SOURCE_ROOT="${SRCROOT}"; export BUILT_PRODUCTS_DIR=/Users/morrita/work/webkit/bob/out/Debug; export CONFIGURATION=Debug; export PRODUCT_NAME=webkit_system_interface; export TARGET_BUILD_DIR=/Users/morrita/work/webkit/bob/out/Debug; export TEMP_DIR="${TMPDIR}";mac/adjust_visibility.sh ../../WebKit/chromium/third_party/apple_webkit/libWebKitSystemInterfaceLeopard.a ../../../out/Debug/libWebKitSystemInterfaceLeopardPrivateExtern.a ../../../out/Debug/obj/Source/WebCore/WebCore.gyp/webkit_system_interface.gen/adjust_visibility
Please |lipo -remove ppc -remove ppc64| from ../../WebKit/chromium/third_party/apple_webkit/libWebKitSystemInterfaceLeopard.a.
Xcode 4.3's ld can no longer relink ppc files.
@omo
omo / handlebars.js
Created February 21, 2012 13:16
Handlebars.js AMD support
// src/amd/prologue.js
define(function() {
// lib/handlebars/base.js
/*jshint eqnull:true*/
var Handlebars = {};
Handlebars.VERSION = "1.0.beta.5";
@omo
omo / gist:1822443
Created February 14, 2012 01:56
FrameTree.h inclusion list
narogoloth:alice morrita$ find Source/ -name "*.cpp" | xargs grep FrameTree
Source//WebCore/bindings/js/JSDOMWindowCustom.cpp:#include "FrameTree.h"
Source//WebCore/bindings/js/PageScriptDebugServer.cpp:#include "FrameTree.h"
Source//WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp:#include "FrameTree.h"
Source//WebCore/dom/Document.cpp:#include "FrameTree.h"
Source//WebCore/editing/Editor.cpp:#include "FrameTree.h"
Source//WebCore/editing/FrameSelection.cpp:#include "FrameTree.h"
Source//WebCore/history/CachedFrame.cpp:#include "FrameTree.h"
Source//WebCore/history/CachedPage.cpp:#include "FrameTree.h"
Source//WebCore/history/PageCache.cpp:#include "FrameTree.h"