AniJS: Small Javascript animation library

AniJS logo

http://anijs.github.io/


From the AniJS website:

  • Include the AniJS library.
    <script src="anijs-min.js"></script>
    
  • Optionaly you can include some CSS animation definitions.
    <head>
        <!-- Animate.css library -->
        <link rel="stylesheet" href="http://anijs.github.io/lib/animationcss/animate.css">
    </head>
    
  • Start playing by adding data-anijs tag to any HTML element.
    <body>
        <header data-anijs="if: click, do: flipInY animated">
            header
        </header>
        <nav data-anijs="if: scroll, on: window, do: swing animated, to: footer">
            nav
        </nav>
        <div id="main" data-anijs="if: mouseover, on: body, do: swing animated">
            if: load, on: window, do: swing animated
        </div>
        <footer>
            footer
        </footer>
        <script src="anijs-min.js"></script>
    </body>
    

Also check out AniJS Studio. A Chrome Extention for prototyping AniJS animations on any page.

Spark: Shell script for converting any list of numbers into a sparkline (a small chart with no axes or coordinates)

Sparklines logo

http://zachholman.com/spark/


Example 1:

spark 0 30 55 80 33 150
▁▂▃▅▂▇

Example 2:

› curl http://earthquake.usgs.gov/earthquakes/catalogs/eqs1day-M1.txt --silent | 
  sed '1d' |
  cut -d, -f9 |
  spark
  ▅▆▂▃▂▂▂▅▂▂▅▇▂▂▂▃▆▆▆▅▃▂▂▂▁▂▂▆▁▃▂▂▂▂▃▂▆▂▂▂▁▂▂▃▂▂▃▂▂

stamp: Ruby library for formatting dates and times based on human-friendly examples

https://github.com/jeremyw/stamp


See the Github page for a full list of features.

Dates

date = Date.new(2011, 6, 9)
date.stamp("March 1, 1999")         #=> "June 9, 2011"
date.stamp("Jan 1, 1999")           #=> "Jun 9, 2011"
date.stamp("Jan 01")                #=> "Jun 09"
date.stamp("Sunday, May 1, 2000")   #=> "Thursday, June 9, 2011"
date.stamp("Sun Aug 5")             #=> "Thu Jun 9"
date.stamp("12/31/99")              #=> "06/09/11"
date.stamp("DOB: 12/31/2000")       #=> "DOB: 06/09/2011"

Ordinal Days

date.stamp("November 5th")          #=> "June 9th"
date.stamp("1st of Jan")            #=> "9th of Jun"

Times

time = Time.utc(2011, 6, 9, 20, 52, 30)
time.stamp("3:00 AM")               #=> "8:52 PM"
time.stamp("01:00:00 AM")           #=> "08:52:30 PM"
time.stamp("23:59")                 #=> "20:52"
time.stamp("23:59:59")              #=> "20:52:30"
time.stamp("Jan 1 at 01:00 AM")     #=> "Jun 9 at 08:52 PM"
time.stamp("23:59 UTC")             #=> "20:52 PST"