✅️ The FindIndex() method can receive a lambda function as an argument and, thus, it's possible find the first unknown element that meets a desired requirement, present in the lambda function. Example:
int brazilIndex = countries.FindIndex(x => x.Population < 220_000_000);
✅️ The Insert() method allows the insertion of an element after a desired index in the list. Example:
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
// | |
// Copyright (c) 2009-2019 Krueger Systems, Inc. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// |
SQLite files to use in Unity.
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using SQLite; | |
public class SQLiteExamples : MonoBehaviour | |
{ | |
private void Start() | |
{ | |
var databasePath = Application.dataPath + "/SoftwareDatabase.db"; |
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
let gitHubApi = 'https://api.github.com/users/JV-Amorim/repos'; | |
// A) Usando a biblioteca Request (ultrapassada): | |
/* | |
const request = require('request'); | |
request(gitHubApi, { headers: { 'User-Agent': 'node.js' } }, (err, res, body) => { | |
console.log(JSON.parse(body)); | |
}); |
OlderNewer