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
<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 |
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
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 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
import test from 'ava' | |
import apps from './apps' | |
import promisify from 'promisify-node' | |
const fs = promisify('fs') | |
const constants = require('./constants'); | |
test.before(async t => { | |
await fs.copyFile(constants.STATICSERVERSCONFIGPATH, constants.STATICSERVERSCONFIGPATH+'.backup') | |
}) |
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
<template> | |
<div class="page"> | |
<Header | |
v-if="title" | |
:title="title" | |
:description="$page.frontmatter.description" | |
:header-image="$page.frontmatter.headerImage" | |
:header-position="$page.frontmatter.headerPosition" | |
/> | |
<div class="content"> |
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
let ogprefix = 'og: http://ogp.me/ns#' | |
let title = 'Wire Up Your Front-End' | |
let description = 'Get your personal guide to finally piece together the missing puzzles to communicate with your server' | |
let color = '#f42525' | |
let author = 'Martin Muzatko' | |
module.exports = { | |
title, | |
description, | |
serviceWorker: true, |
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
Cloning the remote Git repository | |
Cloning with configured refspecs honoured and without tags | |
Cloning repository https://private-repo.com/myrepo.git | |
> git init /var/jenkins_home/workspace/myrepo_master-2U3PIDBWVG233ME5SSYZKLF5UHTXGUK2VP7ZMOBNA6ANF3XH3KZA # timeout=10 | |
Fetching upstream changes from https://private-repo.com/myrepo.git |
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
> # semantic-release --debug [±master ●●] | |
[12:02:19 PM] [semantic-release] › ℹ Running semantic-release version 15.9.12 | |
semantic-release:config options values: { branch: 'master', | |
semantic-release:config repositoryUrl: 'ssh://git@appserver.de:7999/sg/sicon.git', | |
semantic-release:config tagFormat: 'v${version}', | |
semantic-release:config analyzeCommits: { preset: 'angular' }, | |
semantic-release:config verifyConditions: [], | |
semantic-release:config generateNotes: { preset: 'angular', parserOpts: {} }, | |
semantic-release:config prepare: [ { path: '@semantic-release/changelog' } ], | |
semantic-release:config publish: [], |
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
const { ConflictError, LockedError } = require('restify-errors'); | |
const apps = require('./apps'); | |
const { UpdateLockedError, UpdateDisabledError } = require('./exceptions'); | |
module.exports = server => { | |
server.post('/Apps/update', async function (req, res, next) { | |
try { | |
let response = await apps.updateAll(); | |
res.send(200, response); | |
next() |
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
// go to website, run script, abort when needed with `clearTimeout(interval)` | |
// harvest when done with console.log(scrapes) | |
$i('axios') | |
const base = `http://www.echojs.com/latest/` | |
const timeout = 500 | |
async function scrape(id = 0) { | |
const { data } = await axios.get(base + id) | |
document.body.innerHTML = data | |
const articles = document.body.querySelectorAll('#newslist article') |
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
2 Chainz and Wiz Khalifa - We Own It | |
4 Non Blondes - What's Up .mp4 | |
5 Seconds Of Summer - Amnesia | |
5 Seconds Of Summer - Beside You | |
5 Seconds Of Summer - Don't Stop | |
5 Seconds Of Summer - Good Girls | |
5 Seconds Of Summer - Heartbreak Girl | |
5 Seconds Of Summer - Hey Everybody! | |
5 Seconds Of Summer - Jet Black Heart | |
5 Seconds Of Summer - She Looks So Perfect |