Skip to content

Instantly share code, notes, and snippets.

<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
puts "This is a sample script/runner gist"
FLEX_SRC = File.join(File.dirname(__FILE__), "src")
FLEX_LIB = File.join(File.dirname(__FILE__), "lib")
FLEX_BIN = File.join(File.dirname(__FILE__), "bin-debug")
task :default => [:compile, :run]
desc "Compile the Flex app"
task :compile do
Dir.chdir(FLEX_SRC) do
Dir["*.mxml"].each do |source_file|
namespace :flex do
FLEX_SRC = File.join(Rails.root,"src")
FLEX_LIB = File.join(Rails.root,"vendor/lib")
FLEX_BIN = File.join(Rails.root,"public/assets")
desc "Compile the Flex app and run the test suite"
task :build => [:compile, :test]
# Rails template for a basic project assuming the following:
#
# - MySQL for the DB
# - Git for version control
#
# Example: rails myapp -d mysql -m RailsTemplate.rb
#
# Author: Brian Smith ([email protected])
#
# Actions:
-- Create a gist from the specified text or the contents of the selected file
--
-- Author: Brian Smith <[email protected]>
using terms from application "Quicksilver"
on process text str
my growlRegister()
do shell script "echo '" & str & "' | /usr/local/bin/gist"
growlNotify("Gist Created!", "URL has been copied to clipboard")
diff --git a/app/models/kid.rb b/app/models/kid.rb
index 0ad1f19..0b36aeb 100644
--- a/app/models/kid.rb
+++ b/app/models/kid.rb
@@ -1182,6 +1182,7 @@ class Kid < ActiveRecord::Base
def initialize_paid_status
# send paid event to client
favor(WebpageCategory.find_by_name("Homework Helper"))
+ logger.info("DEBUG: #{connection.inspect}")
connection.with_master do
diff --git a/app/models/kid.rb b/app/models/kid.rb
index 0ad1f19..0b36aeb 100644
--- a/app/models/kid.rb
+++ b/app/models/kid.rb
@@ -1182,6 +1182,7 @@ class Kid < ActiveRecord::Base
def initialize_paid_status
# send paid event to client
favor(WebpageCategory.find_by_name("Homework Helper"))
+ logger.info("DEBUG: #{connection.inspect}")
connection.with_master do
fa292fd9 (Jay Swain 2008-11-18 17:20:59 -0800 46) @payment = Payment.new(:offer_id => find_offer_id, :type => 'visa')
require 'digest/sha1'
module SecureToken
def self.secure_digest(*args)
Digest::SHA1.hexdigest(args.flatten.join('--'))
end
def self.generate_token