Skip to content

Instantly share code, notes, and snippets.

View nidhindn's full-sized avatar

Nidhin David nidhindn

  • Kerala
View GitHub Profile
@DanielSWolf
DanielSWolf / Program.cs
Last active October 30, 2024 13:57
Console progress bar. Code is under the MIT License: http://opensource.org/licenses/MIT
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 September 10, 2019 19:22
simple example for the usage of lodash.js _.partial
var add = function (a, b) {
return a + b;
};
var add5 = _.partial(add, 5);
add(3,4);
// 7
add5(3);
// 8