This file contains hidden or 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
| <?php | |
| class A | |
| { | |
| public $foo = "foo"; | |
| } | |
| $a = new A(); | |
| list($a->foo, $b) = array("tolle", "wurst"); | |
This file contains hidden or 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
| set rnu | |
| au InsertEnter * :set nu | |
| au InsertLeave * :set rnu | |
| au FocusLost * :set nu | |
| au FocusGained * :set rnu |
This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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"]} ]}' |