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( | |
fetch('https://dev.com', { | |
method: 'POST', | |
headers: { | |
'Content-Type': 'application/json', | |
Authorization: | |
'Bearer XXX', | |
}, | |
body: JSON.stringify({}), | |
}), |
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
{ | |
"Get Node Godot": { | |
"prefix": "getnode", | |
"body": [ | |
"${1:type} ${2:varName};", | |
"${2:varName} = GetNode<${1:type}>(\"${3:nodeName}\");" | |
], | |
"description": "Get Node in Godot" | |
}, | |
"Godot Signal": { |
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 FR = { | |
hi: "bijour", | |
}; | |
const UK = { | |
hi: "hello", | |
}; | |
type Trad = typeof FR; |
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
variables: | |
HOST: ftp.myhost.com | |
USER: login | |
PASSWD: password | |
build: | |
stage: build | |
image: trion/ng-cli | |
before_script: | |
- npm ci |
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; | |
using MailKit.Net.Smtp; | |
using MailKit.Security; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.Logging; | |
using MimeKit; | |
using MimeKit.Cryptography; | |
namespace MailerApi.Services | |
{ |
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 void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddScoped<EmailerService, EmailerService>(); | |
services.AddControllers(); | |
} |
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 MailerApi.Services; | |
using Microsoft.AspNetCore.Mvc; | |
namespace MailerApi.Controllers | |
{ | |
[ApiController] | |
[Route("[controller]")] | |
public class TestController : ControllerBase | |
{ | |
EmailerService Mailer { get; } |
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
{ | |
"Logging": { | |
"LogLevel": { | |
"Default": "Information", | |
"Microsoft": "Warning", | |
"Microsoft.Hosting.Lifetime": "Information" | |
} | |
}, | |
"AllowedHosts": "*", | |
"Smtp": { |
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; | |
using MailKit.Net.Smtp; | |
using MailKit.Security; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.Logging; | |
using MimeKit; | |
namespace MailerApi.Services | |
{ | |
public class EmailerService |
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
image: docker:git | |
services: | |
- docker:dind | |
variables: | |
DOCKER_DRIVER: overlay | |
# You can find this on your Gitlab repo page, under "Registry" | |
CONTAINER_GITLAB: registry.gitlab.com/<USER OR GROUP NAME>/<REPO NAME> | |
# It's just a tag, use whatever you want : back, front, test, staging... | |
CONTAINER_TAG: latest |
NewerOlder