This file contains 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
<h1>I am doing stuff</h1> |
This file contains 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
article, | |
aside, | |
nav, | |
section { | |
article, | |
aside, | |
nav, | |
section { | |
article, | |
aside, |
This file contains 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
/* does not work: */ | |
:-moz-any(article, aside, nav, section) > h1, | |
:-webkit-any(article, aside, nav, section) > h1 { | |
font-size: 2rem; | |
} | |
/* works: */ | |
:-webkit-any(article, aside, nav, section) > h1 { |
This file contains 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
delete from links_topics where (link_id, topic_id) in ( | |
select | |
j_parent.link_id, | |
j_parent.topic_id | |
from ( | |
select | |
lt.link_id, | |
lt.topic_id, | |
t.path |
This file contains 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
select | |
child_link_id, | |
child_topic_id, | |
parent_link_id, | |
parent_topic_id, | |
child_path, | |
parent_path | |
from ( | |
select | |
lt_child.link_id as child_link_id, |
This file contains 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
'use strict' | |
process.env.NODE_ENV = process.env.NODE_ENV || 'development' | |
const path = require('path') | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin') | |
const isDev = process.env.NODE_ENV === 'development' | |
// style files regexes |
This file contains 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
'use strict' | |
const Promise = require('bluebird') | |
const dust = require('dustjs-linkedin') | |
dust.renderPromise = Promise.promisify(dust.render, { context: dust }) | |
module.exports = async function (template, master) { | |
const locals = Object.assign({}, this.app.locals, this.locals) | |
console.log(locals) |
This file contains 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
'use strict'; | |
const _ = require('lodash'); | |
module.exports = (permissions, requiredPermissions) => { | |
if (!_.isPlainObject(requiredPermissions)) { | |
throw new TypeError('`requiredPermissions` is not an object'); | |
} else if (!_.isPlainObject(permissions)) { | |
throw new TypeError('`permissions` is not an object'); | |
} else { |
This file contains 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
'use strict'; | |
// modules > 3rd party | |
const redirect = require('midwest/factories/redirect'); | |
const createError = require('midwest/util/create-error'); | |
const router = new (require('express')).Router(); | |
const { getAuthenticationDetails, authenticate, login } = require('../config'); | |
const responses = { |
This file contains 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
'use strict'; | |
const _ = require('lodash'); | |
module.exports = (permissions, requiredPermissions) => { | |
if (!_.isPlainObject(requiredPermissions)) { | |
throw new TypeError('`requiredPermissions` is not an object'); | |
} else if (!_.isPlainObject(permissions)) { | |
throw new TypeError('`permissions` is not an object'); | |
} else { |
NewerOlder