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
using UnityEngine; | |
using System.IO; // Trabalhar com arquivos | |
using System.Runtime.Serialization.Formatters.Binary; // Para trabalhar com serializacao para binarios | |
// Não podemos instanciar a classe | |
public static class SaveSystem | |
{ | |
private static string saveFilePath = Application.persistentDataPath + "/data.ps"; // Trabalha com a localização do executável, independente do SO | |
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
[AttributeUsage(AttributeTargets.Property)] | |
public class DataNamesAttribute : Attribute | |
{ | |
protected List<string> _valueNames { get; set; } | |
public List<string> ValueNames | |
{ | |
get | |
{ | |
return _valueNames; |
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
public class DocumentsController | |
{ | |
private readonly IViewRenderService _viewRenderService; | |
// Dependency Injection is happening here | |
public DocumentsController(IViewRenderService viewRenderService) | |
{ | |
_viewRenderService = viewRenderService; | |
} | |
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
// Create a function that get the token from some storage | |
export function tokenGetter() { | |
console.log('token'); | |
return localStorage.getItem('token'); | |
} | |
@NgModule({ | |
declarations: [ | |
AppComponent, | |
], |
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
[ | |
"Porco Da Terra", | |
"Albatross", | |
"Alligator", | |
"Alpaca", | |
"Ant", | |
"Anteater", | |
"Antelope", | |
"Ape", | |
"Armadillo", |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="Redirect to https" stopProcessing="true"> | |
<match url=".*" /> | |
<conditions> | |
<add input="{HTTPS}" pattern="off" ignoreCase="true" /> |
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
let arrA = [ | |
{ | |
nome: 'josias', | |
idade: 24 | |
}, | |
{ | |
nome: 'paulo', | |
idade: 25 | |
} | |
]; |