This file contains hidden or 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
Show hidden characters
{ | |
"presets": ["env"], | |
"plugins": ["inline-dotenv"] | |
} |
This file contains hidden or 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
(ns forca.core | |
(:gen-class)) | |
(def total-de-vidas 6) | |
(def palavra-secreta "MELANCIA") | |
(defn perdeu [] (print "Você perdeu!")) | |
(defn ganhou [] (print "Você ganhou!")) | |
(defn letras-faltantes [palavra acertos] |
This file contains hidden or 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
- C# | |
https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp | |
- Visual Studio IntelliCode | |
https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode | |
- JavaScript (ES6) code snippets | |
https://marketplace.visualstudio.com/items?itemName=xabikos.JavaScriptSnippets | |
- ESLint |
This file contains hidden or 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
git pull origin master | |
git status | |
git stash list | |
git stash save NAME_OF_STASH | |
git stash apply 0 #index_of_stash | |
git stash drop 0 #index_of_stash |
This file contains hidden or 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
set /p version="Enter version Tyrion: " | |
dotnet nuget delete -NonInteractive -Source https://api.nuget.org/v3/index.json -apikey YOUR_API-KEY YOUR_PROJECT_NAME %version% | |
pause |
This file contains hidden or 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
========================================================================================================= | |
======= #Figma: https://www.figma.com/file/9TlOcj6l7D05fZhU12xWT3/Ecoleta-(Booster)?node-id=0%3A1 ======= | |
========================================== Criação do backend ========================================== | |
// Cria a pasta backend | |
$ mkdir backend |
This file contains hidden or 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 addPrice = () => { | |
const myHeaders = new Headers(); | |
myHeaders.append("Content-Type", "application/json"); | |
const currencies = ['BRA/USD', 'GBP/USD', 'EUR/USD']; | |
const randomCurrency = Math.floor(Math.random() * currencies.length) | |
const randomCurrencyValue = Math.floor((Math.random() * 6) + 1); | |
const raw = JSON.stringify({"instrument": currencies[randomCurrency] ,"bid":2.1,"ask":1.2,"date": new Date() }); |
This file contains hidden or 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
<div class="input-group col-md-5"> | |
<label for="fromDate" class="mr-2 col-form-label"> | |
FROM DATE | |
</label> | |
<input class="form-control" [ngModel]="filter.fromDate | date:'yyyy-MM-ddThh:mm'" | |
(ngModelChange)="filter.fromDate = $event" type="datetime-local" name="fromDate" | |
[max]="todayDate | date:'yyyy-MM-ddThh:mm'" (change)="doSomething()" /> | |
</div> | |
<div class="input-group col-md-5"> | |
<label for="endDate" class="mr-2 col-form-label"> |
This file contains hidden or 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 { HttpHandler, HttpInterceptor, HttpRequest, HttpErrorResponse } from "@angular/common/http"; | |
import { Injectable, Inject } from "@angular/core"; | |
import { AppAuthService } from "src/app/services/auth.service"; | |
import { ToastrService } from 'ngx-toastr'; | |
import { tap } from 'rxjs/operators' | |
@Injectable({ providedIn: "root" }) | |
export class AppHttpInterceptor implements HttpInterceptor { | |
constructor( |
This file contains hidden or 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 {Component} from '@angular/core'; | |
@Component({ | |
selector: 'app-modal', | |
template: ` | |
<div aria-modal="true" data-backdrop="static" data-keyboard="false" class="modal fade" tabindex="1050" [ngClass]="{'show': visibleAnimate}" | |
[ngStyle]="{'display': visible ? 'block' : 'none', 'opacity': visibleAnimate ? 1 : 0}"> | |
<div class="modal-dialog"> | |
<div class="modal-content"> | |
<div class="modal-header"> |
OlderNewer