Skip to content

Instantly share code, notes, and snippets.

View diegodfsd's full-sized avatar
🎯
Focusing

Diego Dias diegodfsd

🎯
Focusing
View GitHub Profile
devise_for :users, skip: :all
devise_scope: use do
get 'admin/login', to: 'amin/sessions#new'
end
@diegodfsd
diegodfsd / agenda.txt
Last active April 3, 2018 22:58
Proposta de alinhamento com equipe
Agenda
1. Domain Driven Design
1.1 Overview
1.2 Entity
1.3 Value Object
1.4 Aggreation
1.5 Repository
1.6 Service
1.7 Domain Events
{
"items": [
{
"id": 1,
"title": "Menu 1",
"status": "Active",
"parentId": null,
"level": 0,
"hasChildren": true,
"children": [
Essas são as funcionalidades brevemente descritas pelo cliente. Se você acessar o site urbe.me tudo vai ficar mais fácil entender, porque
o cliente quer uma plataforma semelhante.
Como referencia para ajudar na criação da identidade visual e no entendimento do que ele precisa seguem duas urls
https://oiwarren.com/
http://urbe.me
1 Tela Incial
1.1 Video de apresentação
@diegodfsd
diegodfsd / questions_pitch.txt
Last active September 23, 2017 23:42
Questions pitch
1. Precisa atender seus clientes mas nao quer arcar com as despesas de um imóvel?
2. Sao muitos os desafios para empreender, sua vida seria mais fácil se fosse possível encontrar um espaço na região de sua preferencia e com preço que caiba no seu bolso?
3. Que tal encontrar um espaço para suas reuniões, seu evento ou para alocar sua equipe sem precisar sair de casa?
4. Você sabia que agora é possível encontrar uma sala para suas reuniões, seu evento ou para sua equipe próximo dos melhores endereços direto do seu smartphone ou tablet?
5. Já pensou em dividir seu escritório ou consultório para reduzir custos?
public abstract class BaseContext<TContext> : DbContext, IDataContext, IQueryDataContext, IUnitOfWork
where TContext : DbContext
{
public override int SaveChanges()
{
return Save(() =>
{
var affectedRows = base.SaveChanges();
return Task.FromResult(affectedRows);
}).Result;
let items = [4, 5, 80];
let results = [];
items.forEach(function(x) {
let number = x;
let result = 0;
let a = 0;
let b = 0;
result = (number / 4);
<script data-cfasync="false">
window.civchat = {
apiKey: "RnPwwO6i9FjR2jfUUZ25ojfvXBWZiYDdC0dzy2XNrj1MQIk8gjTRozQiXlRHcm30",
name: "",
email: ""
};
</script>
<script data-cfasync="false" src="https://widget.userengage.io/widget.js"></script>
[user]
# name = Diego Dias
# email = [email protected]
[merge]
tool = tortoisemerge
[mergetool "tortoisemerge"]
cmd = \""c:/Program Files/TortoiseSVN/bin/TortoiseMerge.exe"\" -base:"$BASE" -theirs:"$REMOTE" -mine:"$LOCAL" -merged:"$MERGED"
keepBackup = false
trustExitCode = false
[ArgumentIsNullOrWhitespace, The argument '{0}' cannot be null, empty or contain only white space.]
[AssociatedMetadataTypeTypeDescriptor_MetadataTypeContainsUnknownProperties, The associated metadata type for type '{0}' contains the following unknown properties or fields: {1}. Please make sure that the names of these members match the names of the properties on the main type.]
[AttributeStore_Type_Must_Be_Public, The type '{0}' must be public.]
[AttributeStore_Unknown_Method, The type '{0}' does not contain a public method named '{1}'.]
[AttributeStore_Unknown_Property, The type '{0}' does not contain a public property named '{1}'.]
[Common_NullOrEmpty, Value cannot be null or empty.]
[Common_PropertyNotFound, The property {0}.{1} could not be found.]
[CompareAttribute_MustMatch, '{0}' and '{1}' do not match.]
[CompareAttribute_UnknownProperty, Could not find a property named {0}.]
[CreditCardAttribute_Invalid, The {0} field is not a valid credit card number.]