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:
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>Todo Vue.js Example</title> | |
<link rel="stylesheet" | |
type="text/css" | |
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
<script src="https://cdn.jsdelivr.net/vue/latest/vue.js"></script> | |
<style type="text/css"> |
'use strict'; | |
var gulp = require('gulp'); | |
var stylus = require('gulp-stylus'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var prefix = require('gulp-autoprefixer'); | |
var minifyCss = require('gulp-minify-css'); | |
var rename = require('gulp-rename'); | |
var browserSync = require('browser-sync'); |
set macligatures | |
"Disable Command + P | |
if has("gui_macvim") | |
macmenu &File.Print key=<nop> | |
endif |
var webpack = require('webpack') | |
var path = require('path') | |
module.exports = { | |
entry: './src/index.js', | |
output: { | |
path: './dist/', | |
filename: 'index.js', | |
library: 'VueComponents', | |
libraryTarget: 'umd' |
{ | |
"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" |
export default { | |
file(file, async = false) { | |
console.log(file); | |
if (async) { | |
return (resolve) => { | |
require([`${file}`], resolve); | |
}; | |
} |
I hereby claim:
To claim this, I am signing this object:
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. |
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\JsonResponse; | |
use App\Repositories\Contracts\PostRepository; | |
class PostController extends Controller | |
{ | |
/** |
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)) { |