Skip to content

Instantly share code, notes, and snippets.

View siegy22's full-sized avatar
:shipit:

Yves Siegrist siegy22

:shipit:
View GitHub Profile
@siegy22
siegy22 / Datatable.vue
Created August 19, 2019 09:36
GraphQL vuetify datatable
<template>
<v-row>
<v-col xs="12">
<v-data-table
:headers="headers"
:items="ingredients.edges.map((v) => v.node)"
:loading="this.$apollo.queries.ingredients.loading"
:server-items-length="ingredients.totalCount"
:sort-by.sync="sortBy"
:sort-desc.sync="sortDesc"
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports the include directive... yes (GNU style)
Run options: --seed 34066
# Running:
.................................................................................................................................................................................................SSS......................................................................................................................
Finished in 47.950620s, 6.5484 runs/s, 20.9174 assertions/s.
314 runs, 1003 assertions, 0 failures, 0 errors, 3 skips
You have skipped tests. Run with --verbose for details.
@@ -13,13 +13,7 @@ export default class OrphanAgendaItem extends AgendaItem {
number: this.number(0),
notes: this.attr(null, notes =>
notes.map((n) => {
- const note = new Note();
- note.id = n.id;
- note.annotation = n.annotation;
- note.public = n.public;
- note.author = n.author;
- note.created = n.created;
<template>
<v-menu
:close-on-content-click="false"
v-model="show"
:nudge-right="40"
lazy
transition="scale-transition"
offset-y
full-width
max-width="290px"
### Example
# okra = Okra.enter
# okra.order('poulet', nan: true, pakora: false)
#
# chainable:
# Okra.enter.order('poulet').order('fish', pakora: true)
###
class Okra
# Raj's sick today Damayanti's here for the rescue
Unstaged
modified README.md
@@ -2,7 +2,12 @@
[![Build Status](https://travis-ci.org/bierik/plone-vuejs.svg?branch=master)](https://travis-ci.org/bierik/plone-vuejs)
-> A simple [Vue.js](https://vuejs.org/) SDK to build web sites easily on top of the [Plone RESTAPI](https://github.com/plone/plone.restapi).
+> A simple [Vue.js](https://vuejs.org/) SDK to build web sites easily on top of the [plone.restapi](https://github.com/plone/plone.restapi).
+
+### Prerequests
@siegy22
siegy22 / dbdrop.py
Last active February 7, 2017 11:19
import os
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = "Drops your database using psql command"
def add_arguments(self, parser):
parser.add_argument(
'-R', '--router', action='store', dest='router', default='default',
@siegy22
siegy22 / dbcreate.py
Last active February 7, 2017 11:19
django management task to create the database
import os
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
help = "Creates your database using psql command"
def add_arguments(self, parser):
parser.add_argument(
'-R', '--router', action='store', dest='router', default='default',
$(document).on("turbolinks:load", function(){
var availableTimesPath = "<%= Rails.application.routes.url_helpers.pastor_me_available_times_path %>";
$('#calendar').fullCalendar({
selectable: true,
selectHelper: true,
header: {
left: 'prev,next',
center: 'title',
right: 'month,agendaWeek'
},