Skip to content

Instantly share code, notes, and snippets.

@kironroy
kironroy / CmhF-0.rb
Created August 13, 2016 04:56
https://repl.it/CmhF/0 created by kironroy
# 1992 Dream Team at Olympic Games in Barcelona, Spain
team = {
Karl_Malone: "Power Forward",
Christian_Laettner: "Power Forward",
Charles_Barkley: "Power Forward",
David_Robinson: "Center",
Patrick_Ewing: "Center",
Scottie_Pippen: "Strong Forward",
Chris_Mullen: "Strong Forward",
def fib(first_num, second_num)
limit = 11
while second_num < limit
sum = first_num + second_num
first_num = second_num
second_num = sum
end
sum
end
@kironroy
kironroy / main.cs
Created October 12, 2018 14:20
cSharpQuiz created by kironroy - https://repl.it/@kironroy/cSharpQuiz
using System;
using System.Globalization;
namespace CSharpQuiz
{
class Program
{
static void Main(string[] args)
{
using System;
namespace CoreyAbstractClassHW
{
class Program
{
static void Main(string[] args)
{
Pliers pliers = new Pliers
{
@kironroy
kironroy / RazorPractice.cshtml
Created October 26, 2019 00:37
Razor Syntax practice
@* https://stackoverflow.com/questions/6286868/convert-month-int-to-month-name/6286910 *@
@* https://blogs.msdn.microsoft.com/timlee/2010/07/30/using-functions-in-an-asp-net-page-with-razor-syntax/ *@
@{
ViewData["Title"] = "RazorPractice";
}
<h1>Razor Practice</h1>
![c sharp logo](https://kironroy.github.io/c_sharp.svg)
---
<a href="https://dev.to/kironroy">
<img src="https://d2fltix0v2e0sb.cloudfront.net/dev-badge.svg" alt="Kiron Roy's DEV Profile" height="40" width="40">
</a>
@kironroy
kironroy / sql.txt
Created December 17, 2019 02:08
SQL notes
-- inner join: only the records that match
-- left join: all the records from the left table, and all the matching records from the right table
-- right join: all the records from the right table, and all the matching records from the left table
select c.CompanyName, l.City
from dbo.Customers c
left join dbo.Locations l on c.id = l.CustomerId
@kironroy
kironroy / csharp.md
Last active February 8, 2020 19:20
Database Info updated
using Dapper;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
namespace DataAccessLibrary
{
@kironroy
kironroy / SqlCRUD
Last active February 9, 2020 23:49
using DataAccessLibrary.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DataAccessLibrary
{
// this class will use the SQLDataAccess.cs