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
/** | |
* This module takes care about installing, listing, disabling/enabling and managing apps | |
* Apps are folders run as static server within server/frontend (they are driven by staticservers.hjson) | |
*/ | |
// read config files | |
const Config = require('./config'); | |
const constants = require('./constants'); | |
const staticservers = new Config(constants.STATICSERVERSCONFIGPATH); | |
const serverconfig = require('./serverconfig') |
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
export default ({ | |
Vue, // the version of Vue being used in the VuePress app | |
options, // the options for the root Vue instance | |
router, // the router instance for the app | |
siteData // site metadata | |
}) => { | |
Vue.prototype.$getPosts = (maxPosts = 10) => { | |
let posts = siteData.pages | |
.filter(page => | |
page.frontmatter.layout == 'Post' && |
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
Wolf: 25 | |
Drache: 15 | |
Fuchs: 12 | |
Husky: 11 | |
no species: 9 | |
Tiger: 4 | |
Löwe: 4 | |
Katze: 4 | |
Gepard: 3 | |
Hyäne: 3 |
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
root@martin ~/dev/github/vuepress-test [13:05:42] | |
> # vuepress dev | |
VuePress dev server listening at http://localhost:8080/ | |
✖ 「wdm」: Hash: 482d59b7699f3b63f858 | |
Version: webpack 4.5.0 | |
Time: 14647ms | |
Built at: 2018-4-16 12:05:56 | |
Asset Size Chunks Chunk Names |
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
How do you get that JSON? | |
Data is what drives our apps and tools. | |
Whenever you need data, you need to figure out what is the best way to use that data in the front-end. | |
Depending on your options and the way you use that data, you can figure out what to do with it. | |
Control over the data | |
Does it belong to you? Have you created the data? | |
Can you host it? | |
Is it static? | |
Is it dynamic? | |
Does it have to be managed? By Who? |
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
const sqlFormatter = require('sql-formatter') | |
const promisify = require('promisify-node') | |
const fs = promisify('fs') | |
const path = require('path') | |
const INDENT = '\t' | |
const SCHEMAFILE = path.resolve(__dirname, 'schema.sql') | |
(async () => { | |
try { |
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 init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
<?php namespace ProcessWire; | |
class Events extends PagesType { | |
/** | |
* Construct the Events manager for the given parent and template | |
* | |
* @param Template|int|string|array $templates Template object or array of template objects, names or IDs | |
* @param int|Page|array $parents Parent ID or array of parent IDs (may also be Page or array of Page objects) | |
*/ |
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
Cause | |
com.k15t.scroll.runtime.confluence.content.transform.render.RenderingException: Failed to render template '/page.vm'. | |
at com.k15t.scroll.viewport.infra.render.VelocityTemplateAdapter.render(VelocityTemplateAdapter.java:33) | |
caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'template' in class com.k15t.scroll.viewport.api.placeholder.IncludePlaceholder threw exception com.k15t.scroll.runtime.confluence.content.transform.render.RenderingException: Failed to render template '/templates/modules/product/banner.vm'. at templates/modules_template.vm[line 5, column 42] | |
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) | |
caused by: com.k15t.scroll.runtime.confluence.content.transform.render.RenderingException: Failed to render template '/templates/modules/product/banner.vm'. | |
at com.k15t.scroll.viewport.infra.render.VelocityTemplateAdapter.render(VelocityTemplateAdapter.java:33) | |
caused by: org.apache.velocity.exceptio |
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
<script> | |
var Arrive=function(e,t,n){"use strict";function r(e,t,n){l.addMethod(t,n,e.unbindEvent),l.addMethod(t,n,e.unbindEventWithSelectorOrCallback),l.addMethod(t,n,e.unbindEventWithSelectorAndCallback)}function i(e){e.arrive=f.bindEvent,r(f,e,"unbindArrive"),e.leave=d.bindEvent,r(d,e,"unbindLeave")}if(e.MutationObserver&&"undefined"!=typeof HTMLElement){var o=0,l=function(){var t=HTMLElement.prototype.matches||HTMLElement.prototype.webkitMatchesSelector||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelector;return{matchesSelector:function(e,n){return e instanceof HTMLElement&&t.call(e,n)},addMethod:function(e,t,r){var i=e[t];e[t]=function(){return r.length==arguments.length?r.apply(this,arguments):"function"==typeof i?i.apply(this,arguments):n}},callCallbacks:function(e,t){t&&t.options.onceOnly&&1==t.firedElems.length&&(e=[e[0]]);for(var n,r=0;n=e[r];r++)n&&n.callback&&n.callback.call(n.elem,n.elem);t&&t.options.onceOnly&&1==t.firedElems.length&&t.me.unbindEventWithSelectorAndC |