Skip to content

Instantly share code, notes, and snippets.

View ianaya89's full-sized avatar
👾

Nacho Anaya ianaya89

👾
View GitHub Profile
@ianaya89
ianaya89 / About.vue
Last active November 12, 2019 20:39
Default UI - Curso Basico de Vue.js
<template>
<div class="flex-col items-center">
<h1 class="text-gray-700 text-6xl">Platzi Exchange v1.0.0</h1>
<p class="text-gray-600 text-xl text-center">
Proyecto para obtener las cotizaciones de las cryptomonedas mas
importantes a traves de la API REST de Coincap.
<br />Este proyecto es utilizado en el curo de Vue.js Basico de Platzi
</p>
</div>
</template>

1 & 2

Request #1

POST https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?key=AIzaSyAYZP_ZzeDXyVSGn7_spG5Q3sAk5Mwauvo
"Content-Type": application/json; charset=utf-8

Request #2

@ianaya89
ianaya89 / biusheies.js
Last active July 28, 2018 14:18
BiuSheiEs
function r(obj, cb) {
const wrapped = {}
for (let k in obj) {
let value = obj[k]
if (typeof value === 'object' && !Array.isArray(value)) {
value = r(value, cb)
}
@ianaya89
ianaya89 / eth-test-account.txt
Created October 12, 2017 21:19
eth-test-account.txt
0xF3705B30a9839a8A3b267062bEc12DF247062F57
{
"presets": ["env"]
}
<div id="output">Hello World</div>
<!-- Load Babel -->
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<!-- Your custom script here -->
<script type="text/babel">
const getMessage = () => "Hello World";
document.getElementById('output').innerHTML = getMessage();
</script>
import defaultMember from "module-name";
import * as name from "module-name";
import { member } from "module-name";
import { member as alias } from "module-name";
import { member1 , member2 } from "module-name";
import "module-name";
function* idMaker() {
var index = 0;
while(true)
yield index++;
}
var gen = idMaker();
console.log(gen.next().value); // 0
console.log(gen.next().value); // 1
@ianaya89
ianaya89 / find.js
Last active December 22, 2016 14:28
const catSchema = mongoose.Schema({
name: String
});
const Cat = mongoose.model('Cat', catSchema);
Cat.find({}, (err, cats) => {
if (err) { return console.error(err); }
console.log(cats);
})
@ianaya89
ianaya89 / save.js
Last active December 22, 2016 04:07
const garfield = new Cat({ name: 'garfield' });
garfield.save((err, cat) => {
if (err) { return console.error(err); }
cat.speak();
});