This file contains hidden or 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
| # Check if the script is running with administrative privileges | |
| function Test-Admin { | |
| $isAdmin = [Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent() | |
| return $isAdmin.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) | |
| } | |
| # Function to elevate the shell | |
| function Elevate-Shell { | |
| Start-Process powershell -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs | |
| } |
We can't make this file beautiful and searchable because it's too large.
This file contains hidden or 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
| month,day,versions | |
| 2,4,"[5.12, 5.12]" | |
| 2,4,"[5.12, 5.12]" | |
| 2,4,"[5.12, 5.12]" | |
| 2,4,"[5.12, 5.12]" | |
| 2,4,"[5.12, 5.12]" | |
| 2,4,"[5.12, 5.12]" | |
| 2,4,"[5.10, 5.10]" | |
| 2,4,"[5.10, 5.10]" | |
| 2,4,"[5.12, 5.12]" |
This file contains hidden or 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
| #!/bin/bash | |
| curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install linux --extra-conf "sandbox = false" --init none --no-confirm | |
| PATH="${PATH}:/nix/var/nix/profiles/default/bin" | |
| # | |
| # https://github.com/NixOS/nix/issues/3435#issuecomment-1642654775 | |
| # This is... but other solutins can't avoid following error | |
| # error: could not set permissions on '/nix/var/nix/profiles/per-user' to 755: Operation not permitted | |
| sudo chown --recursive $(whoami) /nix |
This file contains hidden or 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
| return { | |
| "catppuccin/nvim", | |
| name = "catppuccin", | |
| config = function() | |
| require("catppuccin").setup { | |
| flavour = "mocha", -- latte, frappe, macchiato, mocha | |
| term_colors = true, | |
| transparent_background = true, | |
| no_italic = false, | |
| no_bold = false, |
This file contains hidden or 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
| // See https://aka.ms/new-console-template for more information | |
| Cadfkljonsole.WriteLine("Hello, Worldddd!"); |
This file contains hidden or 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
| void PointCloud::computeCovarianceMatrix() { | |
| double means[3] = {0, 0, 0}; | |
| for (int i = 0; i < points.size(); i++) | |
| means[0] += points[i].x, | |
| means[1] += points[i].y, | |
| means[2] += points[i].z; | |
| means[0] /= points.size(), means[1] /= points.size(), means[2] /= points.size(); | |
| for (int i = 0; i < 3; i++) | |
| for (int j = 0; j < 3; j++) { |
This file contains hidden or 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; | |
| namespace RecommenderSystem | |
| { | |
| public class Recommender | |
| { | |
| private Dictionary<string, Dictionary<string, double>> data; |
This file contains hidden or 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; | |
| namespace Code; | |
| public class DependencySourceChangedArgs : EventArgs | |
| { | |
| public WeakReference<IDependencySource> Source { get; } | |
| public object Change { get; } |