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
#!/bin/bash | |
# Taken from https://github.com/react-native-community/discussions-and-proposals/issues/134#issuecomment-554330540 by @ifyapishore | |
# clean react-native | |
echo 'clean watchman' | |
watchman watch-del-all | |
echo 'clean node_modules' | |
rm -rf node_modules | |
echo 'clean caches' | |
rm -rf $TMPDIR/haste-map-react-native-packager-* | |
rm -rf $TMPDIR/react-native-packager-cache-* |
This file has been truncated, but you can view the full file.
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
#include <iostream> | |
#include <cstdlib> | |
int find_max(int array[], int size); | |
int main(int argc, char **argv) { | |
int *array = new int[argc]; | |
for(int i = 0; i < argc-1; ++i){ | |
array[i] = atoi(argv[i+1]); |
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
from random import choice | |
from pathlib import Path | |
projects = [] | |
try: | |
home = str(Path.home()) | |
with open(home+'/.projects.txt') as f: | |
projects = f.readlines() | |
except FileNotFoundError: | |
projects.append("nothing ffs") |
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
conky.config = { | |
double_buffer = true, | |
alignment = 'top_right', | |
background = true, | |
border_width = 0, | |
cpu_avg_samples = 2, | |
default_color = 'ffffff', | |
default_outline_color = '000000', | |
default_shade_color = 'ffffff', | |
draw_borders = false, |
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
#!/bin/bash -e | |
# Author: Jakub Gonet, 2018 | |
# | |
# This program is used to compile all *.c/*.cpp files | |
# present in passed directory to .hex file. Also, generated | |
# .hex file can be automatically flashed into uC using avrdude. | |
OPTIND=1 #POSIX var, resets when getopts was used in shell | |
#---> variables <---# |