Skip to content

Instantly share code, notes, and snippets.

View StabbyCutyou's full-sized avatar

Sean Kelly StabbyCutyou

View GitHub Profile
// What we originally had
namespace Example
{
public class UserMapProfile : Profile
{
public UserMapProfile()
{
CreateMap<ExternalUser, InternalUser>()
.ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.Profile.DisplayName))
}
package main
import "errors"
func main() {
_ = errors.New("puncs, no caps.") // lint catches it
_ = errors.New("Caps, puncs.") // lint catches it
_ = errors.New("Caps, no puncs") // lint doesn't catch it
}
host: <%= ENV['MEMSQL_HOST'] %>
username: <%= ENV['MEMSQL_USERNAME'] %>
password: <%= ENV['MEMSQL_PASSWORD'] %>
port: <%= ENV['MEMSQL_PORT'] %>