Skip to content

Instantly share code, notes, and snippets.

View MartinMuzatko's full-sized avatar
🐈

Martin Muzatko MartinMuzatko

🐈
View GitHub Profile
@MartinMuzatko
MartinMuzatko / README.MD
Last active July 10, 2016 20:11
Riot Mixin - Smooth exit animation for your data - interact.js
// Part of a class
apply(compiler) {
compiler.plugin('emit', (compilation, callback) => {
this.valid = true
for (var filename in compilation.assets) {
if (this.valid) {
this.upload(filename, filename.replace(compilation.options.theme, ''))
}
}
console.log('upload done');
@MartinMuzatko
MartinMuzatko / webcam.js
Created November 17, 2016 15:17
WebRTC Instant Webcam
navigator.mediaDevices.getUserMedia({audio:0,video:1})
.then(function(mediaStream) {
document.body.innerHTML='<video>'
var video = document.querySelector('video')
video.srcObject = mediaStream
video.onloadedmetadata = function(e) {
video.play()
}
})
@MartinMuzatko
MartinMuzatko / gist:8c68af1eb7aaccf92ceda4b23a639c1f
Created December 9, 2016 10:14
DE Description of Processwire
  1. ProcessWire ProcessWire hat viele Anwendungen. Man verwendet ein existierendes framework als Grundlage um ein eigenes System zu erschaffen. CMF - Content Management Framework statt CMSystem. Das kann aber in alle Richtungen gehen:

     Blog
     Shop
     Eventsystem
     Booking
     jede WebApp (With ProcessWire as Backend)
    

Man bestimmt per Oberfläche eigene Datentypen (Felder). Welche in Templates wieder verwendet werden.

# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="bureau"
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
# 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 ->