Skip to content

Instantly share code, notes, and snippets.

View rubentorresbonet's full-sized avatar

Rubén Torres Bonet rubentorresbonet

View GitHub Profile
/*
* AsynchronousPictureLoader.cpp
*
* Created on: 13.08.2014
* Author: ruben.torres
*/
#include <curl/curl.h>
#include <thread>
#include "AsynchronousPictureLoader.h"
/**
* Applies a function to every object of the array which will receive the casted object.
*
* Usage: for_each<MyCustomObject*>(myArray, [] (MyCustomObject *obj) { ... });
*
* @author ruben.torres
*/
template<typename T>
void for_each(cocos2d::CCArray *arr, std::function<void(T)> function)
{
/*
* PermanentTimer.cpp
*
* Created on: 18.08.2014
* Author: ruben.torres
*/
#include <map>
#include <fstream>
#include <string>
/*
* DDVersioning.cpp
*
* Created on: 22.08.2014
* Author: ruben.torres
*/
#include <boost/algorithm/string/predicate.hpp>
#include <cocos2d.h>
#include "DDVersionManager.h"
// --------------------------------------------------------------------------------------------
cls && adb logcat -c && adb logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG
Shader "Name" {
Properties {
_Name ("display name", Range (min, max)) = number
_Name ("display name", Float) = number
_Name ("display name", Int) = number
_Name ("display name", Color) = (number,number,number,number)
_Name ("display name", Vector) = (number,number,number,number)