Skip to content

Instantly share code, notes, and snippets.

View vernak2539's full-sized avatar
👋
Yo yo yo

Alex Vernacchia vernak2539

👋
Yo yo yo
View GitHub Profile
@vernak2539
vernak2539 / fuelux-datepicker-3.0-examples.html
Last active August 29, 2015 13:58
Fuel UX Datepicker 3.0 Examples
<!--
///////////////////////////////////////////////////////////////////////
// These examples apply to Fuel UX v3.0
// If you're looking for Fuel UX v2.* please checkout the examples here
// - https://gist.github.com/vernak2539/7589085
/////////////////////////////////////////////////////////////////////////
-->
<!-- standard markup of datepicker -->
<div class="datepicker dropdown" id="myDatepicker">
<div class="input-append">
@vernak2539
vernak2539 / conditional-server.js
Last active September 25, 2016 00:25
Conditional CSRF
var conditionalCSRF; // be careful with hoisting
var lusca = require( 'lusca' );
var csrf = lusca.csrf();
var csrfFreeRoutes = {
'/server-callback': true
};
// ....everything else in your server
app.configure( function() {
@vernak2539
vernak2539 / app.js
Last active July 10, 2018 08:32 — forked from takeshy/app.js
app.use(express.session());
app.use(express.csrf());
app.get('/', index);
index = function(req,res,next){
res.render('index',{token: req.session._csrf});
}
@vernak2539
vernak2539 / fuelux-datepicker-examples.html
Last active December 29, 2015 00:49
Fuel UX Datepicker Examples
<!--
///////////////////////////////////////////////////////////////////////
// These examples apply to Fuel UX v2.*
// If you're looking for Fuel UX v3 please checkout the examples here
// - https://gist.github.com/vernak2539/9980566
/////////////////////////////////////////////////////////////////////////
-->
<!-- standard markup of datepicker -->
<div class="datepicker dropdown" id="myDatepicker">
<div class="input-append">
@vernak2539
vernak2539 / sample .jshintrc
Created October 23, 2013 14:40
Sample of jshintrc file
{
"devel": true,
"browser": true
"es5": true,
"boss": true,
"bitwise": true,
"curly": true,
"debug": false,
"eqeqeq": true,
"latedef": true,