Skip to content

Instantly share code, notes, and snippets.

View absyah's full-sized avatar

Ardian Bahtiarsyah absyah

  • Semarang, Indonesia
View GitHub Profile
@robatron
robatron / kirby-prompt.sh
Last active August 29, 2015 14:04
Make kirby dance in your command prompt
# Add this to your .bashrc/.profile to make Kirby dance in your command prompt! E.g.,
#
# rob@hal ~ $ (>'.')>
# rob@hal ~ $ ^('.')^
# rob@hal ~ $ <('.'<)
# rob@hal ~ $ ^('.')^
# rob@hal ~ $ (>'.')>
#
# Moved from it's original location at http://pastebin.com/ftR6mtPg
@brianmacarthur
brianmacarthur / flash-app.js
Last active September 14, 2024 17:22
Flash messaging in Express 4: express-flash vs. custom middleware in ejs, handlebars, or jade
var express = require('express');
var cookieParser = require('cookie-parser');
var session = require('express-session');
var flash = require('express-flash');
var handlebars = require('express-handlebars')
var app = express();
var sessionStore = new session.MemoryStore;
// View Engines