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
$(function () { | |
function TimerGetPesos() { | |
$.ajax({ | |
url: new Util().getBaseURL() + 'monitoramento/GetPesos', | |
success: function (dadosPesos) { | |
localStorage.clear(); | |
localStorage.setItem("dadosPesos", JSON.stringify(dadosPesos)); | |
pesos = dadosPesos; | |
}, |
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 System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ExemploMedia | |
{ | |
class Program | |
{ |
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
List lista = new List(); | |
SqlDataReader reader = cmd.ExecuteReader(); | |
while (reader.Read()) | |
{ | |
MinhaClasse classe = new MinhaClasse(); | |
classe.propriedade = reader["propriedade"].ToString(); | |
classe.total = Convert.Toint32(reader["total"]); | |
lista.Add(classe); | |
} |
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
private List PopulaMinhaLista(List lista) | |
{ | |
MinhaClasse minha = new MinhaClasse(); | |
minha.propriedade = “valor em string aê"; | |
minha.total = 666; | |
lista.Add(minha); | |
return lista; | |
} |
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
private void PrintRows(DataSet dataSet) | |
{ | |
// For each table in the DataSet, print the row values. | |
foreach(DataTable table in dataSet.Tables) | |
{ | |
foreach(DataRow row in table.Rows) | |
{ | |
foreach (DataColumn column in table.Columns) | |
{ | |
Console.WriteLine(row[column]); |
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
Database.DefaultConnectionFactory = new SqlCeConnectionFactory("System.Data.SqlServerCe.4.0"); |
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
$ git config --global user.name "MayogaX" | |
$ git config --global user.email mayumisatox@gmail.com |
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
INSERT INTO [__MigrationHistory] | |
([MigrationId], [CreatedOn], [Model], [ProductVersion]) | |
VALUES ('201202161546124_initial', '2012-02-16T15:55:56.252Z', | |
[big-ass hash you don’t need to see], '4.3.0') |
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 (JogadoresContext jc = new JogadoresContext()) | |
{ | |
Goleiro goleiro = new Goleiro(); | |
goleiro.Nome = "Rogerio Ceni"; | |
goleiro.GolsDefendidos = 9000; | |
jc.Goleiros.Add(goleiro); | |
Artilheiro artilheiro = new Artilheiro(); | |
artilheiro.Nome = "Pele"; | |
artilheiro.GolsMarcados = 1000; |
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 class JogadoresContext:DbContext | |
{ | |
public DbSet Artilheiros { get; set; } | |
public DbSet Goleiros { get; set; } | |
public JogadoresContext() | |
{ | |
Database.SetInitializer(new DropCreateDatabaseAlways()); | |
} |
NewerOlder