Skip to content

Instantly share code, notes, and snippets.

using Microsoft.Extensions.Configuration;
using System;
using System.IO;
using DataAccessLibrary;
using DataAccessLibrary.Models;
namespace SQLServerUI
{
class Program
{
@kironroy
kironroy / covid.html
Created May 25, 2020 20:21
covid react page
<!DOCTYPE html>
<html lang="en">
<head>
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="https://kironroy.github.io/apple-touch-icon.png" rel="apple-touch-icon" />
<link href="https://kironroy.github.io/apple-touch-icon-152x152.png" rel="apple-touch-icon" sizes="152x152" />
<link href="https://kironroy.github.io/apple-touch-icon-167x167.png" rel="apple-touch-icon" sizes="167x167" />
@kironroy
kironroy / design.md
Last active September 25, 2020 14:55
design graphics
@kironroy
kironroy / objects.js
Created May 3, 2023 18:20
JavaScript objects
console.log(vini.getSummary());
const grace = {
firstName: 'Grace',
lastName: 'Kelly',
birthYear: 1945,
job: 'Actor',
sisters: ['Pam', 'Bonnie', 'Michelle'],
hasDriversLicense : true,
@kironroy
kironroy / BMI objects
Created May 3, 2023 20:10
JavaScript
const johnObj = {
firstName: 'John',
lastName: 'Smith',
mass: 78,
height: 1.69,
calcBMI: function () {
this.bmi = (this.mass / this.height);
return this.bmi;
},
@kironroy
kironroy / BMI objects challenge
Created May 3, 2023 20:57
JavaScript Objects
const johnObj = {
fullName: 'John Smith',
mass: 92,
height: 1.95,
calcBMI: function () {
this.bmi = this.mass / this.height ** 2;
return this.bmi;
},
getSummary: function() {
@kironroy
kironroy / for loop
Last active May 5, 2023 01:28
for loop js
const ginaArr = [
'Gina',
'Davis',
2037 - 1967,
'singer',
['Sam', 'Tam', 'Mam'],
true
];
const types = [];
@kironroy
kironroy / .js
Created May 5, 2023 01:33
Array to a new array using a forloop
const yearsArr = [1991, 2007, 1969, 2020];
const agesArr = [];
for (let i = 0; i < yearsArr.length; i++) {
agesArr.push(2037 - yearsArr[i]);
}
console.log(agesArr);
// [46, 30, 68, 17]
@kironroy
kironroy / for loop backwards.js
Last active May 6, 2023 04:11
for loop backwards and loop within loop
const ginaArr = [
'Gina',
'Davis',
2037 - 1967,
'singer',
['Sam', 'Tam', 'Mam'],
];