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
/usr/lib/ruby/gems/1.8/gems/railties-3.0.0.rc/lib/rails/railtie/configuration.rb:76:in `method_missing': undefined method `load_paths' for #<Rails::Application::Configuration:0xb72e2004> (NoMethodError) |
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
# resposta do controller | |
respond_with do |format| | |
format.js { | |
render :update do |page| | |
if params[:page] | |
page.call "$('#repo_list').html", render(:partial => 'repo_list', :locals => { :f => SemanticFormBuilder.new(@page.class.name.underscore.to_s, @page, self, {}, proc{}) }) | |
elsif params[:page_files] | |
page.call "$('#files_list').append", render(:partial => 'files_list') | |
page.call "$('#will_paginate').html", (will_paginate @page_files_unchecked, :param_name => 'page_files', :previous_label => t("will_paginate.previous"), :next_label => t("will_paginate.next"), :class => 'pagination ajax', :page_links => false, :renderer => Twitter, :twitter_label => t("more")) | |
end |
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
$("#slide").fadeOut('slow', function() { | |
$("#slide").load("ajax_discentes.php?l=br", function () { | |
$("#slide").fadeIn('slow'); | |
}); | |
}); |
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
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
# that enables you to choose a character from a menu of options. If you are on Lion | |
# try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
# for input. | |
# | |
# It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
# it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode, | |
# as it means you cannot press and hold h/j/k/l to move through your file. You have | |
# to repeatedly press the keys to navigate. |
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
diff --git app/assets/stylesheets/application.css.scss app/assets/stylesheets/application.css.scss | |
index 7202805..4f3504b 100644 | |
--- app/assets/stylesheets/application.css.scss | |
+++ app/assets/stylesheets/application.css.scss | |
@@ -7,68 +7,5 @@ | |
@import "base/media-queries"; | |
@import "ui/icons"; | |
-/********************************************************************* | |
-* Common Styles |
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 'httparty' | |
class SmartWallet | |
include HTTParty | |
KEY = 'E485075C-A77D-404A-A966-72AD93E1CB7D' | |
def self.create_account | |
url = 'http://smartwalletstaging.mundipagg.com' | |
account_url = "#{url}/Account" |
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
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
ruby '2.1.5' | |
gem 'rails' , '4.2.0' | |
gem 'arel' | |
gem 'sqlite3' | |
gem 'active_model_serializers', '0.9.2' |
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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'activerecord' |
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
import Signal exposing (..) | |
import Window exposing (..) | |
import Mouse exposing (..) | |
import Graphics.Element exposing (..) | |
type Input = Win (Int, Int) | Move (Int, Int) | NoOp | |
type alias Model = { input: Input } | |
initModel : Model |
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 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'activerecord', '~> 6.0' | |
gem 'sqlite3' | |
end | |
require 'pp' | |
require 'active_record' |
OlderNewer