$ sudo apt-get update
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 xcCLANG = [ SHELL "xcrun -sdk iphoneos -f clang" ] ; | |
local CLANG = [ MATCH "([^ | |
]*)" : $(xcCLANG) ] ; | |
ECHO "CLANG = $(CLANG)" ; | |
local xcDEVDIR = [ SHELL "xcode-select --print-path" ] ; | |
local DEVDIR = [ MATCH "([^ | |
]*)" : $(xcDEVDIR) ] ; | |
ECHO "DEVDIR = $(DEVDIR)" ; |
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
// Require libraries | |
var os = require("os"); | |
var fs = require("fs"); | |
var readline = require("readline"); | |
var cluster = require("cluster"); | |
var express = require("express"); | |
var site = express.createServer(); | |
// Var up, bro | |
var i, read; |
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) |
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
#ifdef OS_ANDROID | |
#include <android/log.h> | |
/*#include <string.h>*/ | |
#include <jni.h> | |
#define LOG_TAG "libexample" | |
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__) | |
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN,LOG_TAG,__VA_ARGS__) |
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
#include <assert.h> | |
#include <pthread.h> | |
void* PosixThreadMainRoutine(void* data) | |
{ | |
// Do some work here. | |
return NULL; | |
} |
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
{ | |
"manifest_version": 2, | |
"name": "Chrome Socket API Server", | |
"description": "listen & accept for socket", | |
"version": "0.1", | |
"app": { | |
"background": { | |
"scripts": ["server.js"] | |
} | |
}, |
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 lua | |
require 'Test.More' | |
if not pcall(require, 'crypto') then | |
skip_all 'no crypto' | |
end | |
plan(14) |
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
-- | |
-- lua-Spore : <http://fperrad.github.com/lua-Spore/> | |
-- | |
--[[ | |
See http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?RESTAuthentication.html | |
]] | |
local pairs = pairs | |
local tostring = tostring |