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
FROM hseeberger/scala-sbt | |
# For a Alpine Linux version, comment above and uncomment below: | |
# FROM 1science/sbt | |
RUN mkdir -p /exampleapp | |
RUN mkdir -p /exampleapp/out | |
WORKDIR /exampleapp | |
COPY . /exampleapp |
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
5.days.from.this.time.here.let.me.give.to.you.as.parameter(last.year.the.day.before.last.day.of.february) |
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
" Original "Vi behaviour" disabled (I am not that tr00 user [yet]) | |
set nocompatible " better safe than sorry | |
" Fair Vim | |
noremap <Left> <NOP> | |
noremap <Right> <NOP> | |
noremap <Up> <NOP> | |
noremap <Down> <NOP> | |
inoremap <Left> <NOP> |
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
module Foo | |
def save | |
puts 'in save' | |
end | |
end | |
module Foo | |
def self.included(resource) | |
resource.extend ClassMethods | |
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
2.0.0p247 :001 > e = Event.new(start_date_time: DateTime.now, date_offset: 'GMT-4') | |
=> #<Event id: nil, start_date_time: "2013-11-01 13:03:31", date_offset: "GMT-4", created_at: nil, updated_at: nil> | |
2.0.0p247 :002 > e.start_date_time | |
=> Fri, 01 Nov 2013 11:03:31 BRST -02:00 | |
2.0.0p247 :003 > d = DateTime.now | |
=> Fri, 01 Nov 2013 13:04:02 -0200 | |
2.0.0p247 :004 > DateTime.new(d.year, d.month, d.day, d.hour, d.minute, d.second, e.date_offset) | |
=> Fri, 01 Nov 2013 13:04:02 -0400 |
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
abstract class Authenticator { | |
private Authenticator next; | |
public static Authenticator chain() { | |
Authenticator defaultMethod = new EmailAuthenticator(); | |
Authenticator networkMethod = new NetworkAuthenticator(); | |
defaultMethod.setNext(networkMethod); | |
Authenticator partnerMethod = new PartnerAuthenticator(); | |
networkMethod.setNext(partnerMethod); |
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
::Sunspot.session = ::Sunspot::Rails::StubSessionProxy.new(::Sunspot.session) |
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
YourModel.any_instance.stubs(:save_attached_files).returns(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
Projeto final: Gerenciador financeiro. | |
O sistema web deverá contemplar as seguintes ideias: | |
- Cadastro de despesa | |
- Listagem de gastos/recebimentos com filtro por data. | |
- Cadastro de categorías de despesas | |
Bonus points (opcional): | |
- Cadastro de "budget" para uma categoria. |
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
<?php | |
/** | |
* Criteria para a QueryObject | |
* | |
* @author Hélio Costa e Silva <[email protected]> | |
* | |
* @created Novembro, 25 2008 | |
* @revised Dezembro, 26 2008 | |
* @version desenvolvimento / development | |
* |
NewerOlder