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
ack | |
aom | |
aribb24 | |
asciinema | |
autossh | |
awscli | |
bash | |
bat | |
bdw-gc | |
berkeley-db |
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
ack | |
aom | |
aribb24 | |
asciinema | |
autossh | |
awscli | |
bash | |
bat | |
bdw-gc | |
berkeley-db |
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
--[[ | |
lvim is the global options object | |
Linters should be | |
filled in as strings with either | |
a global executable or a path to | |
an executable | |
]] | |
-- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT |
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
set editing-mode vi | |
| |
# vi settings | |
$if mode=vi | |
set keymap vi-insert | |
"kj" # remap escape | |
$endif |
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
import heapq | |
def shortest_route(start, end, graph): | |
# Initialize the heap with the starting point | |
heap = [(0, start)] | |
# Initialize a dictionary to keep track of the best distances to each point | |
best_distances = {start: 0} | |
# Initialize a dictionary to keep track of the previous point in the best route to each point | |
previous_points = {} |
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
#!/bin/bash | |
# Kill all running containers. | |
docker kill $(docker ps -q) | |
# Delete all stopped containers. | |
printf "\n>>> Deleting stopped containers\n\n" && docker rm $(docker ps -a -q) | |
# Delete all untagged images. |
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
" Helps force plugins to load correctly when it is turned back on below | |
filetype off | |
" Install vim plug if not installed | |
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' | |
if empty(glob(data_dir . '/autoload/plug.vim')) | |
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif |
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
" Helps force plugins to load correctly when it is turned back on below | |
filetype off | |
" Install vim plug if not installed | |
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' | |
if empty(glob(data_dir . '/autoload/plug.vim')) | |
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif |
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
unbind C-b | |
set -g prefix C-a | |
bind-key C-a last-window | |
bind-key e send-prefix | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
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
#include<stdio.h> | |
int stack[100],choice,n,top,x,i; | |
void push(void); | |
void pop(void); | |
void display(void); | |
int main() | |
{ | |
//clrscr(); | |
top=-1; | |
printf("\n Enter the size of STACK[MAX=100]:"); |