This file contains hidden or 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
[ | |
{ | |
"action": | |
{ | |
"selector": "div.sideAd", | |
"type": "css-display-none" | |
}, | |
"trigger": | |
{ | |
"url-filter": "macrumors.com" |
This file contains hidden or 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
[ | |
{ | |
"action": { | |
"type": "block" | |
}, | |
"trigger": { | |
"url-filter": ".*" | |
} | |
}, | |
{ |
This file contains hidden or 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
-- For info go to the following web address: | |
-- https://developer.coronalabs.com/code/daily-bonus | |
prefs = require "preference_library" | |
local function checkForSinglePlayerBonus( ) | |
local lastDayNum = prefs.getValue( "lastDayNum" ) or 0 | |
local lastMonthNum = prefs.getValue( "lastMonthNum" ) or 0 | |
local date = os.date( "*t" ) | |
local thisDayNum = (date.day) |
This file contains hidden or 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
function requestCallback( event ) | |
end | |
function setHighscoreGC(category, scoreGC) | |
print (category, scoreGC) | |
-- loggedIntoGC must be true | |
loggedIntoGC = true | |
if loggedIntoGC then gameNetwork.request( "setHighScore", {localPlayerScore={ category= category, value=scoreGC }, listener=requestCallback } ); end | |
end |
This file contains hidden or 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
-- Requires GGTwitter libs to be setup | |
-- https://github.com/GlitchGames/GGTwitter | |
tweeted = false | |
local listenerTwitter = function( event ) | |
if event.phase == "authorised" and tweeted == false then | |
print "twitter authorised" | |
twitter:post( "Test Tweet 1 of 2" ) | |
native.showAlert("Twitter", "Your score has been posted to Twitter!", {"Ok"}) |
This file contains hidden or 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 only code changed from the original is from lines 454 to 466 | |
package.preload['json']=(function(...)local e=string | |
local a=math | |
local u=table | |
local i=error | |
local d=tonumber | |
local c=tostring | |
local s=type | |
local o=setmetatable |
This file contains hidden or 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 only code changed from the original is from lines 454 to 466 | |
package.preload['json']=(function(...)local e=string | |
local a=math | |
local u=table | |
local i=error | |
local d=tonumber | |
local c=tostring | |
local s=type | |
local o=setmetatable |
This file contains hidden or 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 targetDevice = ( system.getInfo( "model" ) ) | |
local isTall = ( "iPhone" == system.getInfo( "model" ) ) and ( display.pixelHeight > 960 ) | |
if isTall == false and targetDevice == "iPhone" then | |
application = | |
{ | |
content = | |
{ | |
width = 320, | |
height = 480, |