-module(teste_server).
-behaviour(gen_server).
-export([start_link/0]).
-export([init/1, handle_call/3, handle_cast/2]).
start_link() ->
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
public class PasswordForteAttribute : ValidationAttribute, IClientValidatable | |
{ | |
private readonly static String PasswordPattern = @"((?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{4,100})"; | |
private readonly static Regex PasswordRegex = new Regex(PasswordPattern); | |
public PasswordForteAttribute() : base("Senha muito fraca") { } | |
public override bool IsValid(object value) | |
{ | |
String password = value.ToString(); |
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
using System; | |
namespace CustomFactory.Attrs | |
{ | |
public class ComponentAttribute : Attribute | |
{ | |
} | |
} |
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
class List(object): | |
@staticmethod | |
def unit(a): | |
return List([a]) | |
def __init__(self, l): | |
self.l = l | |
def _lazy_result_list(self, f): | |
# faz o map | |
# item: List |