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
package main | |
import ( | |
"context" | |
"fmt" | |
"google.golang.org/api/idtoken" | |
"log" | |
"net/http" | |
) |
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
cmake_minimum_required(VERSION 3.6) | |
project(ft_ls) | |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -g") | |
link_directories(libft) # libraries | |
include_directories(inc libft/includes) # headers | |
set(SOURCE_FILES | |
inc/ft_ls.h | |
src/main.c | |
src/ft_ls.c | |
src/parse_input.c |
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
cmake_minimum_required(VERSION 3.6) | |
project(RT) | |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -DUNITY_INCLUDE_CONFIG_H") | |
# project sources | |
set(PARSER_SOURCES | |
inc/rt_prsr.h | |
src/parser/rt_prsr_peek.c | |
src/parser/rt_prsr_node.c | |
src/parser/rt_prsr_parse.c | |
src/parser/rt_prsr_alias.c |
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
//insert in your html with POST form | |
<script> | |
if (window.history.replaceState) { | |
window.history.replaceState(null, null, window.location.href); | |
} | |
</script> |
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
- sudo apt remove apport apport-gtk - remove annoying "app crashed" reports that don't do anything; | |
- sudo apt install tlp tlp-rdw - extend battery life; | |
- gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize' - click to minimize dock app; | |
- sudo apt install gnome-tweak-tool - extend customization options; | |
- mini system monitor widget: | |
step 1: sudo apt-get install gir1.2-gtop-2.0 gir1.2-networkmanager-1.0 gir1.2-clutter-1.0 | |
step 2: https://extensions.gnome.org/extension/120/system-monitor/ install |
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
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "alt+j", | |
"command": "editor.action.addSelectionToNextFindMatch", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "ctrl+d", | |
"command": "-editor.action.addSelectionToNextFindMatch", |
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
t_lst *merge(t_lst *left, t_lst *right, int (*fp) (t_lst *l, t_lst *r)) | |
{ | |
t_lst *head; | |
head = NULL; | |
if (left == NULL) | |
return (right); | |
if (right == NULL) | |
return (left); | |
if (fp(left, right)) //callback sort function |
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
void ls_swap(t_list **a) | |
{ | |
t_list *tmp; | |
tmp = (*a); | |
(*a) = (*a)->next; | |
tmp->next = (*a)->next; | |
if (tmp->next) | |
tmp->next->prev = tmp; | |
(*a)->prev = tmp->prev; |