Skip to content

Instantly share code, notes, and snippets.

# length of maximum digit to enumerate song list
function get_digit_length() {
list=("$@")
length="${#list[@]}"
((length++))
length="${#length}"
echo "$length"
}
# pad with 0's in front. the number of zeros
@oulrich1
oulrich1 / keybase.md
Last active September 12, 2019 05:51

Keybase proof

I hereby claim:

  • I am oulrich1 on github.
  • I am oulrich (https://keybase.io/oulrich) on keybase.
  • I have a public key ASCRystP42c4_PwHDJI1Qw8lNA2oEUO9298AMnIZoRMaXgo

To claim this, I am signing this object:

@oulrich1
oulrich1 / squew.cpp
Created October 4, 2016 02:16
SQUEW - a queue made from 2 stacks
#include <vector>
#include <stack>
#include <initializer_list>
#include <iostream>
#include <string>
#include <stdexcept>
#include <future>
#include <assert.h>
@oulrich1
oulrich1 / designer.html
Created August 16, 2014 02:29
designer
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../core-tooltip/core-tooltip.html">
<polymer-element name="my-element">