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
source $VIMRUNTIME/defaults.vim | |
set ts=4 | |
set sw=4 | |
set nu! |
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
[h] Left | |
[j] Down | |
[k] UP | |
[l] Right | |
[w] Forward | |
[e] Forward to end word | |
[b] Backward | |
[0] start of line | |
[$] end of line | |
[gg] Go to Top file |
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
/** | |
* xlxs and file-saver example | |
* https://dev.to/idrisrampurawala/exporting-data-to-excel-and-csv-in-angular-3643 | |
* https://github.com/SheetJS/sheetjs | |
* install library | |
* npm install --save xlsx file-saver | |
* npm i --save-dev @types/file-saver | |
*/ | |
import { Component, OnInit } from '@angular/core'; | |
import * as FileSaver from 'file-saver'; |
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
## Get starting use git | |
# create git from empty | |
git init | |
# download project into your directory | |
git clone <url> | |
git clone <url> <dirname> #rename default project as you wish | |
## STATUS | |
# Check your git status |
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 | |
## Setup | |
FILE="push_swap" | |
## Constant Variable | |
GREEN="\033[1;32m" | |
GRAY="\033[1;37m" | |
CYAN="\033[1;36m" | |
BLUE="\033[1;34m" | |
YELLOW="\033[1;33m" |
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 | |
## Setup | |
FILE="push_swap" | |
## Constant Variable | |
GREEN="\033[1;32m" | |
GRAY="\033[1;37m" | |
CYAN="\033[1;36m" | |
BLUE="\033[1;34m" | |
YELLOW="\033[1;33m" |
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 | |
## Setup | |
FILE="checker" | |
## Constant Variable | |
GREEN="\033[1;32m" | |
GRAY="\033[1;37m" | |
CYAN="\033[1;36m" | |
BLUE="\033[1;34m" | |
YELLOW="\033[1;33m" |
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 <stdlib.h> | |
#include <unistd.h> | |
char *get_next_line(int fd) | |
{ | |
if (BUFFER_SIZE < 1 || fd < 0 || read(fd, NULL, 0) < 0) { return (NULL); } | |
char *line = malloc(100000), *buf = line; | |
while (read(fd, buf, 1) > 0 && *buf++ != '\n'); | |
return (buf > line) ? (*buf = 0, line) : (free(line), NULL); | |
} |
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 <stdarg.h> | |
#include <unistd.h> | |
static int ft_put_base(int nb, char *range, int base, int *len) | |
{ | |
if (nb < 0 && ++(*len)) | |
return (write(1, "-", 1), ft_put_base(-nb, "0123456789", 10, len)); | |
if (nb >= base) | |
ft_put_base(nb / base, range, base, len); | |
return (write(1, &range[nb % base], 1), ++(*len)); |
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
Minishell test script | |
. | |
.**+**+=:. | |
*#********+=:.. | |
:+**=:+###***++********+-. | |
=***###%#%##****++*********+: | |
-****###%%%%###******+*********+. | |
.+#***###%%%%%%#%%#****************=. | |
.++#***%#*#%%%%%#######****************: |
OlderNewer