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
createSubEagleCore = function () { [native code] } | |
-------- |
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
alert = function alert(message, callback) { | |
if (inAlert) { | |
return; | |
} | |
inAlert = true; | |
_alertCallback = callback || function() {}; | |
__moon__.invoke('alert', '1', JSON.stringify([ message ])); | |
} | |
-------- | |
_resumeFromAlert = function _resumeFromAlert() { |
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
__document = [ null ] | |
-------- | |
document = [ null ] | |
-------- | |
scrollY = 0 | |
-------- | |
scrollX = 0 | |
-------- | |
innerHeight = 1024 | |
-------- |
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
importJS(["lib/MOON.js", "lib/enchant.js", "lib/ui.enchant.js", "lib/puppet.enchant.js", "lib/moon.puppet.enchant.js"], function() { | |
enchant(); | |
enchant.puppet.prepareTheatre(); | |
StickerPuppet.create("", { | |
filename: "chara1.png", | |
w: 48, | |
h: 48, | |
behavior: [{ | |
stickertap: function(event) { | |
MOON.uploadCurrentPageToEvernote(function() { |
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
private ImageLoader.ImageCache newImageCache(final int size) { | |
return new ImageLoader.ImageCache() { | |
private LruCache<String, Bitmap> mCache = new LruCache<String, Bitmap>(size); | |
@Override | |
public Bitmap getBitmap(String url) { | |
return mCache.get(url); | |
} | |
@Override |
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
package com.example.fragmenttest; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Stack; | |
import java.util.UUID; | |
import android.os.Bundle; | |
import android.app.ActionBar; | |
import android.app.Activity; |
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
package com.uphyca.daggerperformance; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.text.DecimalFormat; | |
import java.util.concurrent.Callable; | |
import javax.inject.Inject; | |
import javax.inject.Qualifier; | |
import javax.inject.Singleton; |
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 android.app.Activity; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.test.ActivityUnitTestCase; | |
public class MainActivityUnitTest extends ActivityUnitTestCase<MainActivity> { | |
private Intent _startIntent; | |
public MainActivityUnitTest() { |
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
// | |
// SwizzlingTest.m | |
// HelloUnitTest | |
// | |
// Created by Sosuke Masui on 12/05/03. | |
// Copyright (c) 2012年 うぴか Inc. All rights reserved. | |
// | |
#import "SwizzlingTest.h" | |
#import </usr/include/objc/objc-class.h> |
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 "SwizzlingTest.h" | |
#import </usr/include/objc/objc-class.h> | |
@interface Swizzlingee : NSObject | |
- (NSString *) hoge; | |
- (NSString *) piyo; | |
@end | |
@implementation Swizzlingee | |
- (NSString *)hoge |