Skip to content

Instantly share code, notes, and snippets.

View follyjohn's full-sized avatar

John FOLLY follyjohn

View GitHub Profile
@follyjohn
follyjohn / bck.20190126082417.navigator.settings.json
Created September 16, 2019 12:56
Visual Studio Code Settings Sync Gist
{
"python.pythonPath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\python.exe",
"python.formatting.provider": "yapf",
"files.autoSave": "afterDelay",
"editor.minimap.enabled": false,
"workbench.activityBar.visible": true,
"window.menuBarVisibility": "default",
"workbench.sideBar.location": "left",
"workbench.statusBar.visible": true,
"c-cpp-compile-run.cpp-compiler": "C:\\MinGW\\bin",
# -*- coding: utf-8 -*-
# Print iterations progress
def print_progress(iteration, total, prefix='', suffix='', decimals=1, bar_length=100):
"""
Call in a loop to create terminal progress bar
@params:
iteration - Required : current iteration (Int)
total - Required : total iterations (Int)
prefix - Optional : prefix string (Str)
/*
* Simple MD5 implementation
*
* Compile with: gcc -o md5 -O3 -lm md5.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>