Skip to content

Instantly share code, notes, and snippets.

Avatar

Nidhin David qb-nidhind

View GitHub Profile
@DanielSWolf
DanielSWolf / Program.cs
Last active Nov 27, 2021
Console progress bar. Code is under the MIT License: http://opensource.org/licenses/MIT
View Program.cs
using System;
using System.Threading;
static class Program {
static void Main() {
Console.Write("Performing some task... ");
using (var progress = new ProgressBar()) {
for (int i = 0; i <= 100; i++) {
progress.Report((double) i / 100);
@fonzerelly
fonzerelly / get_partialRight_right_00.js
Last active Sep 10, 2019
simple example for the usage of lodash.js _.partial
View get_partialRight_right_00.js
var add = function (a, b) {
return a + b;
};
var add5 = _.partial(add, 5);
add(3,4);
// 7
add5(3);
// 8