Skip to content

Instantly share code, notes, and snippets.

View fernandolguevara's full-sized avatar
👽
jellow

Fernando López Guevara fernandolguevara

👽
jellow
View GitHub Profile
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
@fernandolguevara
fernandolguevara / bootstrap.js
Last active September 25, 2019 18:43
Sails.js seed method
var nodepath = require('path'),
seedInfo;
function hasSeedInfo() {
var seedPath = nodepath.resolve(sails.config.paths.config, 'env', sails.config.environment, 'seed');
try {
seedInfo = require(seedPath)
} catch (e) {}
return !_.isUndefined(seedInfo) && !_.isNull(seedInfo);
}