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 PersistentHandleWrapper { | |
public: | |
inline PersistentHandleWrapper() | |
: _isolate(nullptr) { } | |
inline PersistentHandleWrapper(v8::Isolate* isolate, v8::Local<T> value) | |
: _isolate(isolate), | |
_value(isolate, value) { } |
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
# The install script | |
# Adapted from https://gist.github.com/579814 | |
install_path=local | |
download_path=Downloads/node-latest-install | |
echo '# Added by install script for node.js and npm in 30s' >> ~/.bashrc | |
echo 'export PATH=$HOME/'$install_path'/bin:$PATH' >> ~/.bashrc | |
echo 'export NODE_PATH=$HOME/'$install_path'/lib/node_modules' >> ~/.bashrc | |
. ~/.bashrc |
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
# See original post at http://stackoverflow.com/questions/822404/how-to-set-up-cmake-to-build-an-app-for-the-iphone | |
cmake_minimum_required(VERSION 2.8) | |
cmake_policy(SET CMP0015 NEW) | |
cmake_policy(SET CMP0016 NEW) | |
project(test) | |
set(NAME test) |