Skip to content

Instantly share code, notes, and snippets.

Avatar
🦀
Learning Rust

Pedro Mendes mendess

🦀
Learning Rust
View GitHub Profile
View suit-me-up.sh
#!/bin/bash
set -e
walls() {
mkdir -p Pictures/Wallpapers
cd Pictures/Wallpapers || exit 1
for f in $(curl "$endpoint:8000/walls" | grep '<a ' | cut -d\" -f2)
do
wget --quiet "$endpoint:8000/$f"
done
}
@mendess
mendess / chat.sh
Last active Apr 15, 2020
A simple chat written in bash
View chat.sh
#!/bin/bash
if [[ "$1" = *-h* ]]
then
cat <<EOF
Usage:
Server: $0
Client: $0 SERVER_IP
EOF
exit
fi
View terminalAnimation.c
#include <stdio.h>
#include <unistd.h>
#define kElements 1250000
const char *progress = "-\\|/";
void initArray(int *p, int num){
int i;
for (i = 0; i < num; ++i)
{
@mendess
mendess / _Indice.md
Last active Jun 24, 2019
Resumos Java
View _Indice.md

Estes resumos foram movidos para um repositorio.

Este gist não vai ser mais updated.

View javaGitignore
# Created by .ignore support plugin (hsz.mobi)
### Java template
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt