Skip to content

Instantly share code, notes, and snippets.

View soapdog's full-sized avatar

Andre Alves Garzia soapdog

View GitHub Profile
@soapdog
soapdog / ipn.inc
Created May 2, 2012 02:30
RevIPN ipn.inc
<?rev
/*
* PayPal Instant Payment Notification Include
* by
* Andre Garzia ([email protected])
*/
local _IPN
@soapdog
soapdog / ipn.irev
Created May 2, 2012 02:32
RevIPN ipn.irev
<?rev
/* PayPal Instant Payment Notification Handler
* by
* Andre Garzia ([email protected])
*/
try
# Include our PayPal IPN routines
include "ipn.inc"
@soapdog
soapdog / build.xml
Created August 27, 2012 23:25 — forked from jessefreeman/build.xml
Simple ImpactJS Ant Build - Use this to bake and copy your game over to a deploy folder so you can easily publish it.
<?xml version="1.0"?>
<project name="Impact Ant Build" basedir="." default="full-build">
<!-- Change these properties based on your project -->
<!-- Project meta data -->
<property name="project.name" value="Resident Raver"/>
<property name="company.name" value="GameCook"/>
<property name="company.site" value="http://gamecook.com"/>
<property name="project.version" value="0.8.1"/>
@soapdog
soapdog / gist:5016833
Created February 22, 2013 21:53
jitsu deploy error with version null
mobilelain:express soapdog$ jitsu deploy --debug
info: Welcome to Nodejitsu andregarzia
info: jitsu v0.12.1, node v0.8.7
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
warn:
warn: The package.json file is missing required fields:
warn:
warn: version
warn:
@soapdog
soapdog / App.js
Created November 29, 2013 14:52
Why fittable does not work
enyo.kind({
name: "App",
kind: "FittableRows",
components:[
{kind: "Signals", ondeviceready: "deviceReady"},
{kind: "onyx.Toolbar", classes: "center", content: "Anuários do Consultor Jurídico"},
{kind: "enyo.Scroller", fit: true, components: [
{name: "busy", classes: "center", showing: false, components: [
{
kind: "onyx.Spinner",
@soapdog
soapdog / App.js
Created November 29, 2013 14:52
Why fittable does not work
enyo.kind({
name: "App",
kind: "FittableRows",
components:[
{kind: "Signals", ondeviceready: "deviceReady"},
{kind: "onyx.Toolbar", classes: "center", content: "Anuários do Consultor Jurídico"},
{kind: "enyo.Scroller", fit: true, components: [
{name: "busy", classes: "center", showing: false, components: [
{
kind: "onyx.Spinner",
enyo.kind({
name: "App",
kind: "FittableRows",
components:[
{kind: "Signals", ondeviceready: "deviceReady"},
{kind: "onyx.Toolbar", classes: "center", content: "Anuários do Consultor Jurídico"},
{kind: "enyo.Scroller", fit: true, components: [
{name: "busy", classes: "center", showing: false, components: [
{
kind: "onyx.Spinner",
function fireReadyCallbacks(url) {
// Fire all ready callbacks we have queued up.
console.log("Available callbacks", _readyCallbacks)
while(_readyCallbacks.length > 0) {
var callback = _readyCallbacks.pop()
if (typeof callback === "function") {
console.log("Callback available, firing it", callback);
callback();
} else {
console.log("What?!?!", callback);
{
"app-logo": "Appmaker",
"Build App": "Construir aplicativo",
"Cancel remixing this widget.": "Cancelar o remix desse widget.",
"Cancel": "Cancelar",
"Click Me": "Clique em mim",
"Component Description": "Descrição do componente",
"Component Name": "Nome do componente",
"Congratulations!": "Parabéns!",
"Continue": "Continuar",
@soapdog
soapdog / gist:9346409
Created March 4, 2014 13:21
Article about Firefox OS on EFYTimes is completely wrong
The article hosted on http://www.efytimes.com/e1/fullnews.asp?edid=132039 is wrong in many places. There are many misconceptions such as:
Item 3: Swiping to the left doesn't reveal category. Reveals the adaptative app search that allows you to get the content you need without the need of installing apps. It also shows smart collections.
Item 4: Completelly wrong. Hosted apps are not hosted on Mozilla servers, they are hosted in their own server. They can work offline when the developer uses appCache. Packaged app makes no use of HTML5 caching because they are already on the device.
Item 5: The correct way to try out Firefox OS is by using the Firefox OS Simulator add-on or the App Manager.
Item 6: The list is completely wrong. The current devices are: Commercial devices available on retails: LG Fireweb, ZTE Open, Alcatel One Touch Fire. There are some Android devices that can support Firefox OS but this is not the recommended way. Also there is the Geeksphone Keon, Peak and Revolution that are developer d