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
    
  
  
    
  | # Oh my posh | |
| oh-my-posh init pwsh --config "~/.config/ohmyposh/omp_theme.toml" | Invoke-Expression | |
| # Custom Modules | |
| Enable-PoshTooltips | |
| Import-Module posh-git | |
| Install-Module -Name posh-alias | |
| Import-Module Terminal-Icons | |
| # Enable Auto complete | 
  
    
      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
    
  
  
    
  | # Tmux Plugins Manager | |
| # List of plugins | |
| set -g @plugin 'tmux-plugins/tpm' | |
| set -g @plugin 'tmux-plugins/tmux-sensible' | |
| # plugins: Vim Tmux navigation | |
| set -g @plugin 'christoomey/vim-tmux-navigator' | |
| # plugins: tmux-yank | |
| set -g @plugin 'tmux-plugins/tmux-yank' | 
  
    
      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
    
  
  
    
  | /* Nord Vomnibar CSS */ | |
| /* Installation: Open Vimium Options -> Click "Show Advanced Options" and paste this into the CSS for Vimium UI text area. */ | |
| #vomnibar ol, #vomnibar ul { | |
| list-style: none; | |
| display: none; | |
| } | |
| #vomnibar { | |
| background: rgba(46, 52, 68, 0.9); | 
  
    
      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
    
  
  
    
  | ;;; $DOOMDIR/config.el -*- lexical-binding: t; -*- | |
| ;; Place your private configuration here! Remember, you do not need to run 'doom | |
| ;; sync' after modifying this file! | |
| ;; Some functionality uses this to identify you, e.g. GPG configuration, email | |
| ;; clients, file templates and snippets. It is optional. | |
| ;; (setq user-full-name "John Doe" | |
| ;; user-mail-address "[email protected]") | 
  
    
      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
    
  
  
    
  | public boolean canFinish(int numCourses, int[][] prerequisites) { | |
| int[] indegree = new int[numCourses]; | |
| List<List<Integer>> adj = new ArrayList<>(numCourses); | |
| for (int i = 0; i < numCourses; i++) { | |
| adj.add(new ArrayList<>()); | |
| } | |
| for (int[] prerequisite : prerequisites) { | |
| adj.get(prerequisite[1]).add(prerequisite[0]); | 
  
    
      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
    
  
  
    
  | import java.util.*; | |
| public class KahnsAlgorithm { | |
| public static void main(String[] args) { | |
| // Graph representation (adjacency list) | |
| List<List<Integer>> adjList = new ArrayList<>(); | |
| for (int i = 0; i < 4; i++) { | |
| adjList.add(new ArrayList<>()); | |
| } | 
  
    
      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
    
  
  
    
  | import java.util.Map; | |
| public class TemplateStringReplacer { | |
| public static String createStringFromTemplate(Map<String, Integer> map, String template) { | |
| StringBuilder stringBuilder = new StringBuilder(); | |
| String[] elements = template.split("%"); | |
| for (String element : elements) { | |
| if (element.equals("_")) { | 
  
    
      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
    
  
  
    
  | import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.Map; | |
| public class MusicalScaleGenerator { | |
| private final Map<Integer, List<Integer>> scaleTransitions = new HashMap<>(); | |
| private final int TARGET_SUM = 12; | |
| private final List<List<Integer>> validScales = new ArrayList<>(); | 
  
    
      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
    
  
  
    
  | # use Tmux only if current term program is Apple Terminal | |
| if [ "$TERM_PROGRAM" = 'Apple_Terminal' ]; then | |
| tmux has -t hack &> /dev/null | |
| if [ $? != 0 ]; then | |
| tmux new -s hack | |
| elif [ -z $TMUX ]; then | |
| tmux attach -t hack | |
| fi | |
| fi | 
  
    
      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
    
  
  
    
  | " Have j and k navigate visual lines rather than logical ones | |
| nmap j gj | |
| nmap k gk | |
| " I like using H and L for beginning/end of line | |
| nmap H ^ | |
| nmap L $ | |
| " Quickly remove search highlights | |
| nmap <F9> :nohl | 
