I hereby claim:
- I am petervmeijgaard on github.
- I am petervmeijgaard (https://keybase.io/petervmeijgaard) on keybase.
- I have a public key ASAe841CdWHVGt4RkG3Hjd5uxy2dcaIxAN6wZvtM75Nvngo
To claim this, I am signing this object:
import * as R from "remeda"; | |
const generateInput = (amountOfEntries: number) => { | |
const entries = Array.from<never[], [string, string]>( | |
{ length: amountOfEntries }, | |
(_, index) => [`KEY_${index}`, `VALUE_${index}`] | |
); | |
return Object.fromEntries(entries); | |
}; |
<template> | |
<div> | |
<p>My Number - {{ myNumber }}</p> | |
<p>Parent Number - {{ parentNumber}} - {{ parentNumberPlusOne }}</p> | |
<button @click="addNumber()"> | |
Add | |
</button> | |
</div> | |
</template> |
<template> | |
<div> | |
<p>My Number - {{ myNumber }}</p> | |
<p>Parent Number - {{ parentNumber}} - {{ parentNumberPlusOne }}</p> | |
<button @click="addNumber()"> | |
Add | |
</button> | |
</div> | |
</template> |
const isObject = value => typeof value === 'object' && value !== null && !Array.isArray(value); | |
const getDottedKey = (current, parent = null) => (parent ? `${parent}.${current}` : current); | |
const objectToDotNotation = (value, key = null, carry = {}) => { | |
if (!isObject(value) && !key) { | |
return value; | |
} | |
if (!isObject(value)) { |
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\JsonResponse; | |
use App\Repositories\Contracts\PostRepository; | |
class PostController extends Controller | |
{ | |
/** |
import { shallow } from 'vue-test-utils' | |
import sinon from 'sinon' | |
import Todo from '@/components/Todo' | |
describe('Todo.vue', () => { | |
/** | |
* Test will check if the name of the component is todo. | |
*/ | |
it('Is called todo', () => { | |
// Initialize the test. |
I hereby claim:
To claim this, I am signing this object:
export default { | |
file(file, async = false) { | |
console.log(file); | |
if (async) { | |
return (resolve) => { | |
require([`${file}`], resolve); | |
}; | |
} |
{ | |
"stylus": { | |
"input": "./resources/area/frontend/stylus/app.styl", | |
"output": "public/frontend/css/app.css" | |
}, | |
"version": { | |
"input": [ | |
"public/frontend/css/app.css" | |
], | |
"output": "./public/frontend/build" |
var webpack = require('webpack') | |
var path = require('path') | |
module.exports = { | |
entry: './src/index.js', | |
output: { | |
path: './dist/', | |
filename: 'index.js', | |
library: 'VueComponents', | |
libraryTarget: 'umd' |