Skip to content

Instantly share code, notes, and snippets.

View orionnoir's full-sized avatar
🏠
Working from home... still... always... you can't make me leave.

Hunter Mayer orionnoir

🏠
Working from home... still... always... you can't make me leave.
View GitHub Profile
@tokineco
tokineco / .gitignore
Last active February 18, 2021 05:33
Cocos2d-x v3.x .gitignore
# OSX - https://github.com/github/gitignore/blob/master/Global/OSX.gitignore
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
@Tetz
Tetz / HttpTest.cpp
Last active March 24, 2017 08:47
HTTP Client for Cocos2dx
// As a onClick event
void HelloWorld::onClick()
{
// Setting HTTP Request Header
std::vector<std::string> headers;
headers.push_back("Content-Type: application/json; charset=utf-8");
// Creating a URL
cocos2d::extension::CCHttpRequest * request = new cocos2d::extension::CCHttpRequest();
request->setUrl("http://example.com");