๐
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"devel": true, | |
"browser": true | |
"es5": true, | |
"boss": true, | |
"bitwise": true, | |
"curly": true, | |
"debug": false, | |
"eqeqeq": true, | |
"latedef": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
/////////////////////////////////////////////////////////////////////// | |
// 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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.use(express.session()); | |
app.use(express.csrf()); | |
app.get('/', index); | |
index = function(req,res,next){ | |
res.render('index',{token: req.session._csrf}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
/////////////////////////////////////////////////////////////////////// | |
// 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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ karma start | |
INFO [karma]: Karma v0.12.28 server started at http://localhost:9876/ | |
INFO [launcher]: Starting browser PhantomJS | |
INFO [launcher]: Starting browser Chrome | |
WARN [launcher]: PhantomJS have not captured in 60000 ms, killing. | |
WARN [launcher]: Chrome have not captured in 60000 ms, killing. | |
WARN [launcher]: PhantomJS was not killed in 2000 ms, sending SIGKILL. | |
WARN [launcher]: Chrome was not killed in 2000 ms, sending SIGKILL. | |
INFO [launcher]: Trying to start PhantomJS again (1/2). | |
INFO [launcher]: Trying to start Chrome again (1/2). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section id="wizard"> | |
<h2>Wizard</h2> | |
<div class="thin-box"> | |
<!-- you need to add this class ("rtl") to .wizard --> | |
<div class="wizard rtl" data-initialize="wizard" id="myWizard"> | |
<ul class="steps"> | |
<li data-step="1"><span class="chevron"></span><span class="badge">1</span>Campaign | |
</li> | |
<li class="active" data-step="2"><span class="chevron"></span><span class="badge">2</span>Recipients | |
</li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var FuelSoap = require('fuel-soap'); | |
var options = { | |
auth: { | |
clientId: 'clientId' | |
, clientSecret: 'clientSecret' | |
} | |
, soapEndpoint: 'https://webservice.s6.exacttarget.com/Service.asmx' // default --> https://webservice.exacttarget.com/Service.asmx | |
}; | |
var SoapClient = new FuelSoap(options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var callback = function(err, data) { | |
}; | |
SoapClient.retrieve( | |
'Email', | |
, ['ID','Name'] | |
, { | |
filter: {...} | |
, reqOptions: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your snippets | |
# | |
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
# expand the prefix into a larger code block with templated values. | |
# | |
# You can create a new snippet in this file by typing "snip" and then hitting | |
# tab. | |
# | |
# An example CoffeeScript snippet to expand log to console.log: | |
# |
OlderNewer