From 3d98eee4f2da4fecff7ce41bfe66a6b40eb2fc43 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Tue, 6 Nov 2018 15:26:21 -0500 Subject: fix post teasers --- content/post/2008-10-11-tabbing-through-fields-vertically.markdown | 2 ++ content/post/2008-10-12-arrow-key-navigation-for-text-fields.markdown | 3 +++ .../2008-9-27-highlight-link-based-on-current-page-in-rails.markdown | 2 +- content/post/2010-12-31-what-i-released-in-2010.markdown | 4 ++-- .../2012-10-07-an-embedded-key-value-store-for-shell-scripts.markdown | 2 ++ content/post/2012-11-01-base-a-scala-project-generator.markdown | 1 + content/post/2012-11-07-announcing-finatra-1-0-0.markdown | 2 ++ content/post/2012-11-13-automatic-high-quality-releases.markdown | 2 ++ content/post/2013-07-28-playing-with-groupcache.markdown | 2 ++ content/post/2013-10-07-golang-http-handlers-as-middleware.markdown | 2 ++ 10 files changed, 19 insertions(+), 3 deletions(-) (limited to 'content/post') diff --git a/content/post/2008-10-11-tabbing-through-fields-vertically.markdown b/content/post/2008-10-11-tabbing-through-fields-vertically.markdown index 2ca859d..7b72484 100644 --- a/content/post/2008-10-11-tabbing-through-fields-vertically.markdown +++ b/content/post/2008-10-11-tabbing-through-fields-vertically.markdown @@ -11,6 +11,8 @@ tags: Sometimes it’s useful to switch the browser’s default tabbing behavior (left to right) to the opposite (top to bottom) when your input fields are in a grid layout instead the of the usual single column layout. Having to do this manually is a real pain, especially for large grids; So here is a solution in javascript, using mootools: + + ```javascript window.addEvent('domready', function(){ var trs = $$('#mytable tr') diff --git a/content/post/2008-10-12-arrow-key-navigation-for-text-fields.markdown b/content/post/2008-10-12-arrow-key-navigation-for-text-fields.markdown index fd00b09..930b0a6 100644 --- a/content/post/2008-10-12-arrow-key-navigation-for-text-fields.markdown +++ b/content/post/2008-10-12-arrow-key-navigation-for-text-fields.markdown @@ -11,6 +11,9 @@ tags: Here is a class for enabling the use of arrow keys to navigate through a grid of input fields: (using mootools) + + + ```javascript var FocusMover = new Class({ diff --git a/content/post/2008-9-27-highlight-link-based-on-current-page-in-rails.markdown b/content/post/2008-9-27-highlight-link-based-on-current-page-in-rails.markdown index e53db49..c9a20f7 100644 --- a/content/post/2008-9-27-highlight-link-based-on-current-page-in-rails.markdown +++ b/content/post/2008-9-27-highlight-link-based-on-current-page-in-rails.markdown @@ -10,7 +10,7 @@ tags: This is common pattern in website navigation, where it highlights the link (usually by setting `class=”active”`) that took you to the current page while you are on that page. - + First, define a helper: ```ruby diff --git a/content/post/2010-12-31-what-i-released-in-2010.markdown b/content/post/2010-12-31-what-i-released-in-2010.markdown index 5d74bf6..84bae2f 100644 --- a/content/post/2010-12-31-what-i-released-in-2010.markdown +++ b/content/post/2010-12-31-what-i-released-in-2010.markdown @@ -7,10 +7,10 @@ url: /post/2546786852/what-i-released-in-2010 tags: --- - - Here’s a recap of what I’ve worked on and released in 2010: + + ###[Youtube Fraiche](https://github.com/capotej/youtube_fraiche) I couldn’t find a youtube downloader that worked on github, so I wrote my own one evening diff --git a/content/post/2012-10-07-an-embedded-key-value-store-for-shell-scripts.markdown b/content/post/2012-10-07-an-embedded-key-value-store-for-shell-scripts.markdown index b4d3f45..d4d8754 100644 --- a/content/post/2012-10-07-an-embedded-key-value-store-for-shell-scripts.markdown +++ b/content/post/2012-10-07-an-embedded-key-value-store-for-shell-scripts.markdown @@ -10,6 +10,8 @@ UPDATE: this is now available as a [sub](http://github.com/37signals/sub) comman Cooked this up last night when I needed a simple key/value store for use in a shell script: + + ```sh db.sh #!/bin/sh diff --git a/content/post/2012-11-01-base-a-scala-project-generator.markdown b/content/post/2012-11-01-base-a-scala-project-generator.markdown index 82dd2f4..d7aca69 100644 --- a/content/post/2012-11-01-base-a-scala-project-generator.markdown +++ b/content/post/2012-11-01-base-a-scala-project-generator.markdown @@ -8,6 +8,7 @@ tags: ["efficiency", "scala", "shell scripting"] Finally got tired of copy pasting other projects and gutting them to make new ones, so I created [base](http://github.com/capotej/base), a shell command that creates new scala projects. + Creating the project: diff --git a/content/post/2012-11-07-announcing-finatra-1-0-0.markdown b/content/post/2012-11-07-announcing-finatra-1-0-0.markdown index 25b3b4b..c7020c4 100644 --- a/content/post/2012-11-07-announcing-finatra-1-0-0.markdown +++ b/content/post/2012-11-07-announcing-finatra-1-0-0.markdown @@ -8,6 +8,8 @@ tags: ["finatra", "scala"] After months of work [Finatra](https://github.com/capotej/finatra#readme) 1.0.0 is finally available! Finatra is a scala web framework inspired by [Sinatra](https://github.com/sinatra/sinatra#readme) built on top of [Finagle](http://twitter.github.com/finagle). + + ### The API The API looks like what you'd expect, here's a simple endpoint that uses route parameters: diff --git a/content/post/2012-11-13-automatic-high-quality-releases.markdown b/content/post/2012-11-13-automatic-high-quality-releases.markdown index a2a90f4..860aea1 100644 --- a/content/post/2012-11-13-automatic-high-quality-releases.markdown +++ b/content/post/2012-11-13-automatic-high-quality-releases.markdown @@ -8,6 +8,8 @@ tags: ["shell scripting", "finatra"] Recently, I invested some time into automating some of the work that goes into a [Finatra](http://github.com/capotej/finatra#readme) release. + + The work consists of updating: * The version in the XML fragment of the main [README.markdown](https://github.com/finatra/https://github.com/capotej/finatra/blob/master/README.markdown) diff --git a/content/post/2013-07-28-playing-with-groupcache.markdown b/content/post/2013-07-28-playing-with-groupcache.markdown index 4fd18c4..7542b38 100644 --- a/content/post/2013-07-28-playing-with-groupcache.markdown +++ b/content/post/2013-07-28-playing-with-groupcache.markdown @@ -8,6 +8,8 @@ tags: ["go", "databases", "distributed computing"] This week, [@bradfitz](http://twitter.com/bradfitz) (of memcached fame) released [groupcache](http://github.com/golang/groupcache) at OSCON 2013. I'm already a big fan of [memcached](http://memcached) and [camlistore](http://camlistore.org), so I couldn't wait to download it and kick the tires. + + By the way, I **strongly** recommend you go through the [slides](http://talks.golang.org/2013/oscon-dl.slide#1) and [README](http://github.com/golang/groupcache) before going further. ## What groupcache isn't diff --git a/content/post/2013-10-07-golang-http-handlers-as-middleware.markdown b/content/post/2013-10-07-golang-http-handlers-as-middleware.markdown index 812632c..5b9b652 100644 --- a/content/post/2013-10-07-golang-http-handlers-as-middleware.markdown +++ b/content/post/2013-10-07-golang-http-handlers-as-middleware.markdown @@ -8,6 +8,8 @@ tags: ["go", "http"] Most modern web stacks allow the "filtering" of requests via stackable/composable middleware, allowing you to cleanly separate cross-cutting concerns from your web application. This weekend I needed to hook into go's ```http.FileServer``` and was pleasantly surprised how easy it was to do. + + Let's start with a basic file server for ```/tmp```: ```go main.go -- cgit v1.2.3