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/env bash | |
HOSTNAME="vagrant" | |
HOSTSFILE="./hosts" | |
CONFIG=$(vagrant ssh-config) | |
HOST=$(echo "$CONFIG" | egrep -o "HostName .+" | cut -d" " -f2-) | |
PORT=$(echo "$CONFIG" | egrep -o "Port .+" | cut -d" " -f2-) | |
USER=$(echo "$CONFIG" | egrep -o "User .+" | cut -d" " -f2-) | |
KEY=$(echo "$CONFIG" | egrep -o "IdentityFile .+" | cut -d" " -f2-) |
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
127.0.0.1 plus.google.com | |
127.0.0.1 www.9gag.com 9gag.com | |
127.0.0.1 www.amazon.de amazon.de | |
127.0.0.1 www.bitcoinity.org bitcoinity.org | |
127.0.0.1 www.der-postillon.com der-postillon.com | |
127.0.0.1 www.engadget.com engadget.com | |
127.0.0.1 www.facebook.com facebook.com | |
127.0.0.1 www.faz.net faz.net | |
127.0.0.1 blog.fefe.de | |
127.0.0.1 www.geizhals.at geizhals.at |
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
curl --user 'USER:PASS' -s https://bitbucket.org/api/2.0/repositories/michaelcontento | ruby -rjson -e 'JSON.load(STDIN.read)["values"].each {|repo| %x[git clone #{repo["links"]["clone"][1]["href"]} ]}' |
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
std::function<void()> once(const std::function<void()>& callback) | |
{ | |
return [&callback]() { | |
static bool called = false; | |
if (!called) { | |
called = true; | |
callback(); | |
} | |
}; | |
} |
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
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_MODULE := cocos2dcpp_shared | |
LOCAL_MODULE_FILENAME := libcocos2dcpp | |
LOCAL_SRC_FILES := hellocpp/main.cpp \ | |
$(subst $(LOCAL_PATH)/,,$(wildcard $(LOCAL_PATH)/../../Classes/*.cpp)) \ |
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
diff --git template/multi-platform-cpp/proj.ios_mac/ios/AppController.h template/multi-platform-cpp/proj.ios_mac/ios/AppController.h | |
index 0c73d6a..e155cc9 100644 | |
--- template/multi-platform-cpp/proj.ios_mac/ios/AppController.h | |
+++ template/multi-platform-cpp/proj.ios_mac/ios/AppController.h | |
@@ -4,7 +4,7 @@ | |
@interface AppController : NSObject <UIApplicationDelegate> { | |
UIWindow *window; | |
- RootViewController *viewController; | |
+ @public RootViewController *viewController; |
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
--- cocos2dx/platform/android/nativeactivity.cpp | |
+++ cocos2dx/platform/android/nativeactivity.cpp | |
@@ -150,6 +150,7 @@ static cocos_dimensions engine_init_display(struct engine* engine) { | |
*/ | |
const EGLint attribs[] = { | |
EGL_SURFACE_TYPE, EGL_WINDOW_BIT, | |
+ EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, | |
EGL_BLUE_SIZE, 5, | |
EGL_GREEN_SIZE, 6, | |
EGL_RED_SIZE, 5, |
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
template<typename T> | |
class FinalAction | |
{ | |
FinalAction(T f): clean(f) {} | |
~FinalAction() { clean(); } | |
T clean; | |
} | |
template<typename T> | |
FinalAction<T> finally(T f) |
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
diff --git extensions/GUI/CCScrollView/CCScrollMenu.cpp extensions/GUI/CCScrollView/CCScrollMenu.cpp | |
index ec2ae4c..5920b88 100644 | |
--- extensions/GUI/CCScrollView/CCScrollMenu.cpp | |
+++ extensions/GUI/CCScrollView/CCScrollMenu.cpp | |
@@ -1,20 +1,26 @@ | |
#include "CCScrollMenu.h" | |
+ | |
USING_NS_CC; | |
+NS_CC_EXT_BEGIN |