Skip to content

Instantly share code, notes, and snippets.

WARNING in ./node_modules/v-click-outside/dist/v-click-outside.umd.js
Module Warning (from ./node_modules/eslint-loader/dist/cjs.js):
Failed to load config "airbnb-base" to extend from.
Referenced from: /home/andrew/git/pull-217/maps/src/maps/node_modules/v-click-outside/.eslintrc
@ ./node_modules/@nextcloud/vue/dist/Components/AppNavigationItem.js 45:577-603
@ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PublicFavoriteShareSideBar.vue?vue&type=script&lang=js&
@ ./src/components/PublicFavoriteShareSideBar.vue?vue&type=script&lang=js&
@ ./src/components/PublicFavoriteShareSideBar.vue
@ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/PublicFavoriteShare.vue?vue&type=script&lang=js&
@ ./src/PublicFavoriteShare.vue?vue&type=script&lang=js&
@anaqreon
anaqreon / Dockerfile
Last active October 15, 2019 19:25
Nextcloud Maps localhost development environment
FROM nextcloud:17.0.0
# entrypoint.sh and cron.sh dependencies
RUN set -ex; \
\
apt-get update; \
apt-get install -y --no-install-recommends \
git \
nodejs \
npm \
@anaqreon
anaqreon / hubzilla-project-lang-de.html
Last active June 4, 2018 17:38
This is the German translation of the Hubzilla project page
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">
<nav class="navbar navbar-custom navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse">
<i class="fa fa-bars"></i>
</button>
<a class="navbar-brand" href="https://demo.hubzilla.org">
<i class="fa fa-desktop"></i> <span class="light">Demo</span>
@anaqreon
anaqreon / gist:352c828e439d7da1d3e738d7c07832f2
Last active August 22, 2016 10:43
recursively copy a directory into cloud files
<?php
// recursively copy a directory into cloud files
function copy_folder_to_cloudfiles($channel, $observer_hash, $srcpath, $cloudpath)
{
if (!is_dir($srcpath) || !is_readable($srcpath)) {
logger('Error reading source path: ' . $srcpath, LOGGER_NORMAL);
return false;
}
$nodes = array_diff(scandir($srcpath), array('.', '..'));
foreach ($nodes as $node) {
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://www.w3.org/2005/10/profile">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Paste Image</title>
<script src="https://code.jquery.com/jquery-2.2.3.min.js"></script>
<script>
// We start by checking if the browser supports the
// Clipboard object. If not, we need to create a
// contenteditable element that catches all pasted data