I hereby claim:
- I am tangzero on github.
- I am jairosilvatw (https://keybase.io/jairosilvatw) on keybase.
- I have a public key ASAtUW-tu3eu9uvwlstx_RkturJj8pgRTbnpvWDGxqkD4Qo
To claim this, I am signing this object:
system = require("spine-hp/system") | |
spine = require("spine-hp/spine") | |
local width, height = 640, 480 | |
MOAISim.openWindow("MOAI and Spine", width, height) | |
local viewport = MOAIViewport.new() | |
viewport:setSize(width, height) | |
viewport:setScale(width, -height) |
require 'pathname' | |
require 'rbconfig' | |
require 'fileutils' | |
module BasicMoai | |
ROOT_FOLDER = File.expand_path(File.join(File.dirname(__FILE__), "..")) | |
SRC_FOLDER = File.join(ROOT_FOLDER, "src") | |
VENDOR_FOLDER = File.join(ROOT_FOLDER, "vendor") | |
TMP_FOLDER = File.join(ROOT_FOLDER, "tmp") |
package.preload['hc.class'] = (function (...) | |
--[[ | |
Copyright (c) 2010-2011 Matthias Richter | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
package.preload['hp/core/Application'] = (function (...) | |
-------------------------------------------------------------------------------- | |
-- Module for the start of the application.<br> | |
-- | |
-- @class table | |
-- @name Application | |
-------------------------------------------------------------------------------- | |
-- import | |
local Event = require "hp/event/Event" |
-- Interface for cross class-system compatibility | |
-- see https://github.com/bartbes/Class-Commons. | |
if common_class ~= false then | |
common = {} | |
function common.class(name, prototype, parent) | |
local class = parent and Core.class(parent) or Core.class() | |
local class.__name = name | |
if prototype then |
Function::property = (prop, desc) -> | |
Object.defineProperty @prototype, prop, desc | |
class Person | |
constructor: (@firstName, @lastName) -> | |
@property 'fullName', | |
get: -> "#{@firstName} #{@lastName}" | |
set: (name) -> [@firstName, @lastName] = name.split ' ' | |
p = new Person 'Leroy', 'Jenkins' |
APP_CPPFLAGS := -ffunction-sections -fdata-sections -fvisibility=hidden -frtti | |
APP_CFLAGS := -ffunction-sections -fdata-sections | |
APP_LDFLAGS := -Wl,--gc-sections | |
from: | |
libSDL2.so 661K | |
libgnustl_shared.so 758K | |
liblove.so 3.9M | |
to: | |
libSDL2.so 661K |
install PostgreSQL 9 in Mac OSX via Homebrew | |
Mac OS X Snow Leopard | |
System Version: Mac OS X 10.6.5 | |
Kernel Version: Darwin 10.5.0 | |
Install notes for PostgreSQL 9.0.1 install using Homebrew: | |
sh-3.2# brew install postgresql |
package main | |
import ( | |
"crypto/md5" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"os" |
I hereby claim:
To claim this, I am signing this object: