Skip to content

Instantly share code, notes, and snippets.

View lucidstack's full-sized avatar

Andrea Rossi lucidstack

  • char.gy
  • Norwich, England
View GitHub Profile
@lucidstack
lucidstack / gist:5633916
Created May 23, 2013 09:21
How to use helpers in Express 3.x
//helpers.js
var moment = require('moment');
var helpers = {
nice_date: function(raw_date) {
return moment(raw_date).format('LL');
}
@lucidstack
lucidstack / keybase.md
Created July 15, 2014 09:17
keybase.md

Keybase proof

I hereby claim:

  • I am lucidstack on github.
  • I am lucidstack (https://keybase.io/lucidstack) on keybase.
  • I have a public key whose fingerprint is 8068 5AEE EA47 92F9 6EBA 437B EFC6 DA5A 1A07 559C

To claim this, I am signing this object:

@lucidstack
lucidstack / .vimrc
Last active July 1, 2017 15:52
lucidstack vimrc
" Defaults
""""""""""
set nocompatible " be iMproved, required
filetype off " required
""""""""""
" Defaults
" Plugins
""""""""
@lucidstack
lucidstack / application.js
Created February 26, 2017 12:40
Toggle HTML elements through <select> options
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details