Skip to content

Instantly share code, notes, and snippets.

Avatar

João Ferreira lubien

View GitHub Profile
View gist:6cc0c52ebae2f0a4d93c8fd45aca901e
git diff --name-only 1ff0f508a HEAD > foo.txt
View WithForm.js
function defaultDirtyForForm(form) {
return Object.keys(form).reduce((acc, key) => {
acc[key] = false;
return acc;
}, {});
}
const WithForm = defaultForm => {
const fields = Object.keys(defaultForm());
View TagForm.vue
<template>
<div class="card">
<div class="card-body">
<h4 class="card-title">
{{ isEditing ? "Editando tag" : "Criando Tag" }}
</h4>
<form @submit.prevent="onSubmit" class="forms-sample">
<b-form-group v-if="entity" :disabled="true" label="ID">
<b-form-input :value="entity.id"></b-form-input>
View fgo.json
[
{
"id":1,
"name":"Mashu Kyrielight",
"starGeneration":9.9,
"npGain":0.84,
"hits":{
"quick":2,
"arts":2,
"buster":1,
View foo.md

a

a

Disallow Warning Comments (no-warning-comments)

b

View allowedExtensions.js
function allowedExtensions (exts) {
return exts.map((item, i) => {
const first = i === 0
const last = i === (exts.length - 1)
if (first) {
return [item]
}
if (last) {
View foo.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
1
2
3
4
5
6
7
8
9