Skip to content

Instantly share code, notes, and snippets.

@artrayd
artrayd / index.js
Created September 23, 2020 21:05 — forked from wdmtech/index.js
Facebook SDK (Graph/REST API) integration as a Vue.js mixin
export let facebookSDK = {
mounted () {
let _this = this
this.$nextTick(() => {
window.fbAsyncInit = function () {
FB.init({
appId: 'XXX',
xfbml: true,
version: 'v2.6'
})
@artrayd
artrayd / App.vue
Last active July 29, 2019 05:00 — forked from tomhodgins/sketch.html
Draw <svg> inside the browser with finger or mouse. Adopted for vuejs. Demo: https://artrayd.com/freehand-svg/
<template>
<div id="app">
<FreehandDrawSVG
v-bind:title="drawProps.title"
v-bind:colors="drawProps.colors"
v-bind:bgColors="drawProps.bgColors"
v-bind:lineColor = "drawProps.lineColor"
v-bind:bgColor = "drawProps.bgColor"
v-on:changeLineColor = "changeLineColor"