This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First Function | |
const canRegister = async (idCard, yunenCard) => { | |
const url = `${names.API_ENDPOINT_AFFILIATE}BuscarPendienteRegistro`; | |
const request = { | |
usuario: null, | |
requerimiento: `${idCard}-${yunenCard}`, | |
}; | |
return new Promise((resolve, reject) => { | |
axios.post(url, request) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://strapi.io/blog/building-a-static-website-using-gatsby-and-strapi/#2installation | |
"remote.WSL.fileWatcher.polling": true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const _ = {}; | |
const abc = function(a, b, c) { | |
return [a, b, c]; | |
} | |
_.curry = (fn) => { | |
let arguments = []; | |
const getArgument = (...args) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const _ = {}; | |
_.compose = (...fns) => { | |
let result = null; | |
return (...args) => { | |
result = args; | |
for(let i = fns.length - 1; i >= 0; i--) { | |
let fnResult = fns[i](...result); | |
result = Array.isArray(fnResult) ? fnResult : [fnResult]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const _ = {}; | |
_.map = (arr, fn) => { | |
const results = []; | |
for(let i = 0; i < arr.length; i++) { | |
results.push(fn(arr[i])); | |
} | |
return results; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"new storybook": { | |
"prefix": "ns", | |
"body": [ | |
"import ${1:component} from './${2:index}.vue';", | |
"", | |
"export default { title: '${3:Components}/${1:component}' };", | |
"", | |
"const Template = (args, { argTypes }) => ({", | |
" components: { ${1:component} },", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<h1>Post</h1> | |
<div v-if="post" id="first-post"> | |
<h3 class="text-lg">{{ post.title }}</h3> | |
<p class="text-base">{{ post.body }}</p> | |
</div> | |
</div> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<h1>Post</h1> | |
<div v-if="post" id="first-post"> | |
<h3 class="text-lg">{{ post.title }}</h3> | |
<p class="text-base">{{ post.body }}</p> | |
</div> | |
</div> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<h1>Post</h1> | |
<div v-if="post" id="first-post"> | |
<h3 class="text-lg">{{ post.title }}</h3> | |
<p class="text-base">{{ post.body }}</p> | |
</div> | |
</div> | |
</template> |