<-- This anchor tag posts to '/click' when it is clicked -->
<a ic-post-to="/click">
Click Me!
</a>
Month: February 2015
codrops CSS Reference: Extensive online CSS reference
OWASP Authentication Cheat-sheet: Best practices for authentication and session management
https://www.owasp.org/index.php/Authentication_Cheat_Sheet
Application developers should look through this. It’s a good list.
Awesome Ruby: Large collection of Ruby libraries, tools, frameworks and software
There’s a lot here. It’s going to take me awhile to dig through the whole list.
.bashrc PS1 generator: Drag and drop web interface for customizing your bash prompt
warp: A bash script to SSH from a list of hostnames
AniJS: Small Javascript animation library
- 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)
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
▅▆▂▃▂▂▂▅▂▂▅▇▂▂▂▃▆▆▆▅▃▂▂▂▁▂▂▆▁▃▂▂▂▂▃▂▆▂▂▂▁▂▂▃▂▂▃▂▂
textarea to code editor: Chrome Extension for converting a selected textarea to a code editor
https://chrome.google.com/webstore/detail/textarea-to-code-editor/kcapdaijpdnhajjgdimlhoaaaiplkobj
I use this to edit my wordpress posts in Markdown. Just being able to press tab to indent text instead of tabbing
to the next field makes this extension worthwhile.
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"