Skip to content

Instantly share code, notes, and snippets.

View mlanin's full-sized avatar

Maxim Lanin mlanin

View GitHub Profile
@mlanin
mlanin / progress_bar.go
Created February 14, 2022 07:02
Create a nice progress bar using symbols
package progress_bar
import (
"strings"
"text/template"
)
// Options can be used to customize look of the progress bar. DefaultProgressOptions() has pretty good defaults.
type Options struct {
Fill string // The character(s) used to fill in the progress bar
@mlanin
mlanin / bootstrap-pagination.html
Last active September 30, 2015 09:39
Simple bootstrap "previous / next" table pagination
<table class="table with-pager">
<thead>
<tr>
<th>Order</th>
<th>Name</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>