Skip to content

Instantly share code, notes, and snippets.

View SebastienTainon's full-sized avatar

Sébastien Tainon SebastienTainon

View GitHub Profile
@SebastienTainon
SebastienTainon / drag_drop.mixin.js
Created October 16, 2018 12:33
Drag'n'drop Vue.js mixin to use with vue-drap-grop plugin to be able to use coordinates in Firefox
import $ from 'jquery';
export default {
data () {
return {
initOffset: {
x: 0,
y: 0,
},
coordinates: {
@SebastienTainon
SebastienTainon / DailyScrumHelper.gs
Last active February 19, 2018 10:11
Daily Scrum Helper with integration with Jira, Github and Google Calendar API
// In Google Drive, create a new document of type Google Script. If it does not exist, use "Connect more apps" to enable Google Scripts
// Copy-paste this script into the content of the Google Script
// This script sends you at each execution an email with Github commits of last day, Jira modified tickets of last day, Google Calendar events of last day, and Google Calendar events of current day
// For Jira, just put your username and password. Use https://id.atlassian.com to get them, change password if necessary
// For Calendar access, in Google Script, go to Resources > Advanced Google Services and enable "Calendar API"
// For Github, it's complicated... you have to follow this tutorial: https://www.benlcollins.com/apps-script/oauth-github
// Last step, make the script a daily cron: go to Edit > Current project's triggers and run "sendDailyReport" every day between 5am and 6am
// You can run manually "sendDailyReport" to test if it's working ;)
// Settings
@SebastienTainon
SebastienTainon / Multiselect2Field.vue
Last active June 17, 2020 10:07
Vue-form-generator multiselect field with asynchronous behaviour. You have to return a promise in the search query
<template>
<multiselect
:id="selectOptions.id"
:options="options"
:value="value"
:multiple="selectOptions.multiple"
:track-by="selectOptions.trackBy || null"
:label="selectOptions.label || null"
:searchable="selectOptions.searchable"
:clear-on-select="selectOptions.clearOnSelect"