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
#Requires | |
%w(rubygems rake webrick net/http fileutils daemons).each {|lib| require lib} | |
@config = { | |
#Files to compile | |
:targets => { | |
"source/classes/spfc_main.as" => "public/spfc_main.swf", | |
"source/classes/spfc_intro.as" => "public/spfc_intro.swf", | |
"source/classes/spfc_loader.as" => "public/spfc_loader.swf", | |
"source/classes/test.as" => "public/test.swf" |
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
basepath = File.expand_path File.join(File.dirname(__FILE__), '..') | |
worker_processes 2 | |
working_directory basepath | |
# This loads the application in the master process before forking | |
# worker processes | |
# Read more about it here: | |
# http://unicorn.bogomips.org/Unicorn/Configurator.html | |
preload_app true |
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 'net/http' | |
require 'net/https' | |
require 'rubygems' | |
require 'daemons' | |
PIC_IDS = %w(404626466293247 404626476293246 404626472959913 404626492959911) #Pics to change | |
PAGE_TOKEN = 'TOKEN_HERE' | |
PAGE_ID = 'PAGE_ID_HERE' | |
uri = URI("https://graph.facebook.com/#{PAGE_ID}") |