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
| module ActsAsLogger | |
| module Logger | |
| def self.included(base) | |
| base.extend(ClassMethods) | |
| end | |
| module ClassMethods | |
| def acts_as_logger(options={}) | |
| include InstanceMethods | |
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
| class QuestionAnswer | |
| include Mongoid::Document | |
| include Mongoid::Timestamps | |
| include Stateflow | |
| field :question | |
| field :answer | |
| field :complement | |
| field :state | |
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
| require 'stringex' | |
| module CouchRest | |
| module Model | |
| module Slug | |
| extend ActiveSupport::Concern | |
| included do | |
| before_save :generate_slug | |
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
| tutorial de instalação do mongodb no ubuntu (atual 2.0.6): | |
| http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian-or-ubuntu-linux/ | |
| conectar no mongo: | |
| $ mongo | |
| no console do mongo: | |
| use database_name; | |
| db.addUser("user", "password"); |
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
| #apps na webbynode | |
| cd /opt/nginx/phd-sites | |
| #expires header (js, css) | |
| server { | |
| listen 80; | |
| server_name site.com ; | |
| root /var/rapp/site/public; | |
| passenger_enabled on; |
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
| Apresentação do grupo | |
| Por que testar ? | |
| Test Driven Development | |
| Behavior Driven Development | |
| Rspec | |
| Test Unit | |
| Cucumber | |
| Selenium | |
| Capybara / Webrat |
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
| #################################################### | |
| # sintaxe | |
| #################################################### | |
| var = "Conteudo" | |
| puts var | |
| puts var.downcase | |
| arr = ["ruby", "rails", "javascript"] | |
| puts arr |
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
| dpkg-reconfigure tzdata |
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
| nohup python agent.py > /var/log/mongodb/agent.log 2>&1 & |
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
| module AuthlogicModel | |
| def self.included(model) | |
| model.class_eval do | |
| extend ClassMethods | |
| include InstanceMethods | |
| #include ProtectedAttributes | |
| property :username | |
| property :email | |
| property :crypted_password |
OlderNewer