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
-- Read the docs: https://www.lunarvim.org/docs/configuration | |
-- Video Tutorials: https://www.youtube.com/watch?v=sFA9kX-Ud_c&list=PLhoH5vyxr6QqGu0i7tt_XoVK9v-KvZ3m6 | |
-- Forum: https://www.reddit.com/r/lunarvim/ | |
-- Discord: https://discord.com/invite/Xb9B4Ny | |
local dap = require("dap") | |
lvim.plugins = { | |
{ | |
"catppuccin/nvim", | |
name = "catppuccin" |
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
Design: https://play.tailwindcss.com/JLfoTtGfSx?layout=preview |
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
// Add <AllowUnsafeBlocks>true</AllowUnsafeBlocks> To Your *.csproj | |
int variable = 481; | |
unsafe | |
{ | |
int* pointer = &variable; // Get The Pointer Of A Variable | |
Console.WriteLine((int)pointer); // Writes The Pointer | |
Console.WriteLine(*pointer); // Writes The Value | |
Console.WriteLine(pointer->ToString()); // Access Properties |
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 namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
if ($host.Name -eq 'ConsoleHost') { | |
Import-Module PSReadLine | |
} | |
Import-Module -Name Terminal-Icons | |
Function psql() { |
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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "folder", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 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
FROM node:latest # Replace With Your Node.JS Version | |
WORKDIR /app | |
COPY package*.json ./ | |
RUN npm ci --only=production # Similiar To npm install | |
COPY . ./ | |
ENV PORT 8000 | |
EXPOSE ${PORT} | |
RUN npm run build | |
CMD ["npm", "run", "start"] |
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
class Variable { | |
type; | |
value; | |
freeze; | |
constructor(value, type, freeze = false) { | |
if (!type) { | |
this.type = typeof value; | |
} else { | |
this.type = type; |
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
class MyMap<K, V> { | |
private map: [key: K, value: V][] = []; | |
set(key: K, value: V) { | |
const result = this.map.find(([k]) => k === key); | |
if (!result) { | |
this.map.push([key, value]); | |
return; | |
} | |
result[1] = value; |
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
input, | |
textarea { | |
width: 30vw; | |
border: 2px solid #ebebf2; | |
border-radius: 5px; | |
padding: 1rem 2rem; | |
&:focus { | |
outline: none; | |
border: 2px solid #7985ff; |
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
FROM node:latest | |
WORKDIR /app | |
COPY package*.json ./ | |
RUN npm ci --only=production | |
COPY . ./ | |
ENV NODE_ENV production | |
ENV PORT 8000 | |
EXPOSE ${PORT} | |
RUN npm run test | |
RUN npm run build |
NewerOlder