View Bricks.json
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
[ | |
{ | |
"Product":{ | |
"Name":"Ek Number (No.1) - 1500 Bricks (1 Trailer)", | |
"Price":"₹14,700.00", | |
"OriginalPrice":"₹20,700.00", | |
"PercentDiscount":"30%", | |
"FrameSize":"10.25 x 5.25 x 3.25 inch", | |
"BricksSize":"10 x 5 x 3 inch (approx.)", | |
"Usage":"Wall/Floor/etc.", |
View Resume.cs
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 QuestPDF.Fluent; | |
using QuestPDF.Helpers; | |
using QuestPDF.Infrastructure; | |
using QuestPDF.Previewer; | |
using SkiaSharp; | |
QuestPDF.Settings.License = LicenseType.Community; | |
Document.Create(container => | |
{ | |
container |
View Tries.cs
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 Node | |
{ | |
public Dictionary<char,Node> value { get; set; } = new Dictionary<char,Node>(); | |
public bool IsEndOfWord = false; | |
} | |
public class Trie | |
{ | |
Node node; | |
public Trie() | |
{ node = new Node();} |
View FinalMouseMovementWithScroll.cs
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.Diagnostics; | |
using System.Drawing; | |
using System.Numerics; | |
using System.Runtime.InteropServices; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
using static System.Console; |
View LeetCode2DArrayToCSharpArray.cs
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 List<List<int>> ListFromString(string str) | |
{ | |
return str.Split(']') | |
.Where(x => x.Length > 0) | |
.Select(x=> x | |
.Split(new char[] { '[', ',' }) | |
.Where(m => m.Length > 0) | |
.Select(m => Convert.ToInt32(m)) | |
.ToList()) | |
.ToList(); |
View Highlight.html
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>HighLight Js Example </title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/default.min.css"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min.js"></script> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" | |
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> | |
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" |
View CpuUses.cs
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.Diagnostics; | |
using System.IO; | |
using System.Text; | |
namespace CpuUses | |
{ | |
class Program | |
{ | |
static PerformanceCounter cpuCounter; |
View LeetCodeTreeMaker.cs
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 Program | |
{ | |
static void Main(string[] args) | |
{ | |
var arr = new int[] {1,2,3,4,5,6,7,8,9}; | |
var tree = new LeetCodeTree().MakeTree(arr); | |
BFS(tree); | |
} | |
} | |
public class LeetCodeTree |
View MaterialColor.cs
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
var newObstacle = Instantiate(cube, new Vector3(i, 0, j), Quaternion.identity, transform); | |
Renderer obstacleRenderer = newObstacle.GetComponent<Renderer>(); | |
Material mat = new Material(obstacleRenderer.sharedMaterial); | |
mat.color = GetRandomColor(); | |
obstacleRenderer.sharedMaterial = mat; | |
// | |
public Color GetRandomColor() |
View Editor.cs
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
// MapGenerator is class on which this custom editor will be called | |
using UnityEditor; | |
[CustomEditor(typeof(MapGenerator))] | |
public class Edit : Editor | |
{ | |
public override void OnInspectorGUI() | |
{ | |
base.OnInspectorGUI(); | |
// if you remove |^|(base.OnInspectorGUI(); ) | |
// variable in inspector may not show up properly |
NewerOlder