Skip to content

Instantly share code, notes, and snippets.

View manico's full-sized avatar
🎯
Focusing

Jadranko Dragoje manico

🎯
Focusing
View GitHub Profile
@manico
manico / custom-elements.html
Last active March 23, 2018 08:44
Custom Elements
<c-chart><c-chart>
<c-table><c-table>
<c-list><c-list>
@manico
manico / custom-elements-wrapped.html
Created March 23, 2018 08:46
Custom Elements Wrapped
<c-element class="c-element" data-id="1">
<c-chart><c-chart>
</c-element>
<c-element class="c-element" data-id="2">
<c-table><c-table>
</c-element>
<c-element class="c-element" data-id="3">
<c-list><c-list>
</c-element>
@manico
manico / vue-render-merge.js
Created March 23, 2018 09:00
Vue Render Merge
Vue.config.optionMergeStrategies.render = (parentVal, childVal) => {
if (parentVal) {
const mergedParentVal = function render(...args) {
args.push([childVal.apply(this, args)]);
return parentVal.apply(this, args);
};
return mergedParentVal;
}
@manico
manico / vue-render-mixin.js
Last active March 23, 2018 10:09
Vue Render Mixin
export default {
render(createElement, children) {
return createElement(
"div",
{
class: "c-element",
style: {
background: "red",
padding: "1em",
},
@manico
manico / vue-render-component.js
Created March 23, 2018 09:16
Vue Render Component
{
mixins: [elementable],
render(createElement) {
return createElement(
"div",
{
style: {
background: "yellow"
}
},
@manico
manico / vue-debug.js
Created March 30, 2018 08:16
Vue Debug Configuration
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Vue Chrome",
@manico
manico / seven-tickets.json
Created May 3, 2018 11:37
Seven Tickets Sample
{
"PreMatchBetting": {
"config": {
"id": "PreMatchBetting"
},
"active": false,
"tickets": {
"single": {
"id": "single",
"config": {
@manico
manico / grame-seven-response.json
Created July 17, 2018 13:36
Grame Seven Response
{
"products": [
{
"id": "5741936d-460d-40bc-9abf-3aa1a03b878c",
"name": "Lucky Six",
"category": [
1
],
"integration": {
"type": "iframe",
@manico
manico / runner-apps-registry.json
Last active October 18, 2018 07:57
Runner Apps Registry
{
"apps": [
{
"name": "ZXing",
"provider": "ZXing Team",
"fqn": "com.zxing.scanner.android",
"keywords": ["scanner", "scan", "barcode", "qr", "code"],
"actions": [
{
"name": "scan",
@manico
manico / chameleon-flow-simple.json
Last active November 4, 2018 09:10
Chameleon Flow Simple
{
"app": {
"id": "0b05ca3e-8339-414a-b325-f87db85102d9"
},
"type": "Local",
"elements": [
{
"id": "d2f891ca-94bd-4355-b7a9-386b431c4dc0",
"fqn": "Event.Start",
"position": {