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 KratosServices | |
def initialize(client) | |
# instance of the follow clients | |
# - FerreriKratosSdk::Clients::ClientRest | |
# - FerreriKratosSdk::Clients::ClientOry | |
@client = client | |
end | |
def login(body) | |
@client.login(body) |
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
├── bin | |
│ ├── console | |
│ └── setup | |
├── CODE_OF_CONDUCT.md | |
├── ferreri_kratos_sdk.gemspec | |
├── Gemfile | |
├── Gemfile.lock | |
├── lib | |
│ ├── ferreri_kratos_sdk | |
│ │ ├── clients |
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
OryHydraClient::CreateIdentity | |
require 'ory-kratos-client' | |
instance = OryHydraClient::CreateIdentity.new( | |
schema_id: null, | |
traits: { | |
email: 'test@example.com' | |
} | |
password: 'some password' | |
) |
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
identity: | |
default_schema_url: file:///path/to/default-identity.schema.json |
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
const schema = yup.object().shape({ | |
email: yup.string().email("Formato de e-mail inválido").required("Preenchimento obrigatório"), | |
fullname: yup.string().required().min(9, "Insira seu nome completo"), | |
cpf: yup.string().required("Preenchimento Obrigatorio"), | |
cellphone: yup.number().required("Preenchimento Obrigatorio"), | |
state: yup.string().required("Preenchimento Obrigatorio"), | |
city: yup.string().required("Preenchimento Obrigatorio"), | |
password: yup.string().required("Preenchimento Obrigatorio"), | |
repeatPassword: yup.string().required("Preenchimento Obrigatorio"), |
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
Starting Step #1 - "Rodando docker ps" | |
Step #1 - "Rodando docker ps": Already have image (with digest): gcr.io/cloud-builders/docker | |
Step #1 - "Rodando docker ps": | |
Step #1 - "Rodando docker ps": ***** NOTICE ***** | |
Step #1 - "Rodando docker ps": | |
Step #1 - "Rodando docker ps": Alternative official `docker` images, including multiple versions across | |
Step #1 - "Rodando docker ps": multiple platforms, are maintained by the Docker Team. For details, please | |
Step #1 - "Rodando docker ps": visit https://hub.docker.com/_/docker. | |
Step #1 - "Rodando docker ps": | |
Step #1 - "Rodando docker ps": ***** END OF NOTICE ***** |
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
def create_index(es_object, index_name="recipes"): | |
created = False | |
# index settings | |
settings = { | |
"settings": {"number_of_shards": 1, "number_of_replicas": 0}, | |
"mappings": { | |
"members": { | |
"dynamic": "strict", | |
"properties": { | |
"title": {"type": "text"}, |
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
<!DOCTYPE html> | |
<html class="no-js" lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}"> | |
<head> | |
{{ "<!-- Basic Page Needs -->" | safeHTML }} | |
{{ block "schema-dot-org" . }} | |
<!-- schema.org metadata differs for Nodes and Pages --> | |
{{ 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
import hashlib | |
import memcache | |
import traceback | |
from flask import request | |
from functools import wraps | |
from wakatime_website import app | |
from werkzeug.contrib.cache import MemcachedCache | |
mc = memcache.Client() | |
cache = MemcachedCache(mc) |
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
[user] | |
name = Lucas Simon | |
email = lucassrod@gmail.com | |
[core] | |
editor = 'vim' | |
excludesfile = /home/lucas/.gitignore | |
[diff] | |
tool = vimdiff |
NewerOlder