Skip to content

Instantly share code, notes, and snippets.

View WadsonGarbes's full-sized avatar
🏠
Working from home

Wadson Garbes WadsonGarbes

🏠
Working from home
View GitHub Profile
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
@WadsonGarbes
WadsonGarbes / jm.txt
Last active September 20, 2019 23:28
1) info <comando>
2) man <comando>
3) Ctrl + w
4) Ctrl + u
5) pwd
#include <stdio.h>
#include <string.h>
int par_ou_impar(char *S)
{
int i, j, cont;
j = strlen(S);
for(i = 0; i < j; i++)
#include <stdio.h>
#include <string.h>
int main(void)
{
int ct, n;
char nome[100];
scanf("%d", &ct);
PS1='\[\033[0;32m\]\[\033[0m\033[0;32m\]\u\[\033[0;36m\] @ \w\[\033[0;32m\]\n$(git branch 2>/dev/null | grep "^*" | colrm 1 2)\[\033[0;32m\]└─\[\033[0m\033[0;32m\] \$\[\033[0m\033[0;32m\]\[\033[0m\] '
@WadsonGarbes
WadsonGarbes / app.py
Last active May 2, 2019 02:57
Flask Fingerprint webapp
@app.route('/dataupload',methods=['GET','POST'])
def dataupload():
if request.method == 'POST' and 'img' in request.files:
file = request.files['img']
filename = secure_filename(file.filename)
# os.path.join is used so that paths work in every operating system
# file.save(os.path.join("wherever","you","want",filename))
file.save(os.path.join('static/uploadsDB',filename))
fullfile = os.path.join('static/uploadsDB',filename)
# Type terminal commands as follows: make EXE=yourFileName (don't add extensions)
# the compiler: gcc for C program
CC = gcc
# compiler flags:
# -g adds debugging information to the executable file
# -Wall turns on most, but not all, compiler warnings
CFLAGS = -g -Wall