Skip to content

Instantly share code, notes, and snippets.

View jonyrock's full-sized avatar
💭
chilling protocol in progress

Alexey Velikiy jonyrock

💭
chilling protocol in progress
View GitHub Profile
I/godot ( 1125): ***************** HELLO FROM JNI!!!!!!!!
I/godot ( 1125): *******CLASS FOUND!!!
I/godot ( 1125): STEP2, 0x1d2003ca
I/godot ( 1125): STEP3 -1311747048
I/godot ( 1125): STEP4, 0x9a000029
I/godot ( 1125): STEP4.5, 0x1d2003ce
I/godot ( 1125): STEP5
I/godot ( 1125): STEP6
I/godot ( 1125): *******GOT METHOD _file_open ok!!
I/godot ( 1125): *******GOT METHOD _file_get_size ok!!
class SunNode : public cocos2d::Node {
public:
virtual bool init();
CREATE_FUNC(SunNode);
private:
cocos2d::Size _size;
// see drawPolygon at https://gist.github.com/jonyrock/493f71825a2564d18f19
void drawRect(cocos2d::Vec2 points[4], cocos2d::Color4F color) {
Color4F borderColor(color);
borderColor.a = 0.5;
drawPolygon(points, 4, color, 0.5, borderColor);
}
void buggyDraw() {
float eps = 5;
vector<Vec2> ppnts;
void DrawNode::drawPolygon(Vec2 *verts, int count, const Color4F &fillColor, float borderWidth, const Color4F &borderColor)
{
CCASSERT(count >= 0, "invalid count value");
struct ExtrudeVerts {Vec2 offset, n;};
struct ExtrudeVerts* extrude = (struct ExtrudeVerts*)malloc(sizeof(struct ExtrudeVerts)*count);
memset(extrude, 0, sizeof(struct ExtrudeVerts)*count);
for (int i = 0; i < count; i++)
{
ClippingNode* createClippingNode() {
auto cl = ClippingNode::create();
cl->setContentSize(Size(100, 100));
cl->setAnchorPoint(Vec2(0.5, 0.5));
auto stencil = DrawNode::create();
//stencil->drawPoint(Vec2(0,0), 200, Color4F::WHITE);
vector<Vec2> pnts;
pnts.push_back(Vec2(0,0));
pnts.push_back(Vec2(50,100));
pnts.push_back(Vec2(100, 0));
#import <UIKit/UIKit.h>
#import "FlurryAdInterstitial.h"
@interface RootViewController : UIViewController {
}
@property (strong) FlurryAdInterstitial* adInterstitial;
- (BOOL) prefersStatusBarHidden;
- (void) showFullScreen;
cmake_minimum_required(VERSION 2.6)
set(APP_NAME CloopPuzzle)
project (${APP_NAME})
include(cocos2d/build/BuildHelpers.CMakeLists.txt)
option(USE_CHIPMUNK "Use chipmunk for physics library" ON)
option(USE_BOX2D "Use box2d for physics library" OFF)
option(DEBUG_MODE "Debug or release?" ON)
@400000005579ca751da86264 ===== Starting browser =====
@400000005579ca76008bea5c tcp 0 0 0.0.0.0:4000 0.0.0.0:* LISTEN
@400000005579ca7600ba35ec tcp 0 0 0.0.0.0:4001 0.0.0.0:* LISTEN
@400000005579ca892db8568c ATTENTION: default value of option force_s3tc_enable overridden by environment.
@400000005579ca8b15eb4654 [3154:4021:0611/205057:ERROR:web_data_service_backend.cc(54)] Cannot initialize the web database: 2
@400000005579ca8f0cdf47cc [3154:3154:0611/205101:ERROR:password_store_factory.cc(157)] Could not initialize login database.
@400000005579ca8f32b53574 [3154:3154:0611/205101:ERROR:desktop_window_tree_host_x11.cc(856)] Not implemented reached in virtual void views::DesktopWindowTreeHostX11::InitModalType(ui::ModalType)
@400000005579ca900d3e6374 [3154:3154:0611/205102:ERROR:desktop_window_tree_host_x11.cc(856)] Not implemented reached in virtual void views::DesktopWindowTreeHostX11::InitModalType(ui::ModalType)
@40000000
__original_build_class__ = __build_class__
def mybuild_class(func, name, *bases, metaclass=None, **kwds):
print('hello world')
return __original_build_class__(func, name, bases, metaclass, kwds)
__build_class__ = mybuild_class
a = A()
from,to,n
20,175,25705
20,191,2700
20,173,20
20,185,149
20,182,480
20,202,555
20,180,1151
20,275,105
20,139,1902