Skip to content

Instantly share code, notes, and snippets.

View nuria-fl's full-sized avatar

Núria nuria-fl

View GitHub Profile
@nuria-fl
nuria-fl / country-emoji.js
Created August 21, 2020 08:51
Country emojis
const countryList = [
{
name: 'Afghanistan',
emoji: '🇦🇫',
},
{
name: 'Åland Islands',
emoji: '🇦🇽',
},
{

Keybase proof

I hereby claim:

  • I am nuria-fl on github.
  • I am nuriafl (https://keybase.io/nuriafl) on keybase.
  • I have a public key ASBJB2mwfnXHjzNJY-raM4yRxrYxBTHB8KZjpXAjzTYiBAo

To claim this, I am signing this object:

@nuria-fl
nuria-fl / MyMovies.vue
Created June 30, 2017 17:17
Vue tutorial: Escalando nuestra app
<template lang="html">
<div>
<div v-if="savedMovies.length" class="movies">
<movie v-for="movie in savedMovies" :movie="movie">
</movie>
</div>
</div>
</template>
<script>
@nuria-fl
nuria-fl / Home.vue
Created June 30, 2017 17:15
Vue tutorial: Vuex
<template>
<div>
<header v-if="genres.length" class="header">
<dropdown
filterName="genre"
:items="genres"
:selected.sync="selectedGenre">
</dropdown>
</header>
@nuria-fl
nuria-fl / Home.vue
Created June 30, 2017 17:12
Vue tutorial: Marcar película como favorita
<template>
<div>
<dropdown :items="genres" :selected.sync="selectedGenre"></dropdown>
<movie v-for="movie in filteredMovies" :movie="movie"></movie>
</div>
</template>
<script>
import api from '@/services/api'
@nuria-fl
nuria-fl / Dropdown.vue
Created June 30, 2017 17:11
Vue tutorial: Filtrar por género
<template>
<div>
Filter by genre:
<select @change="selectGenre" :value="selected">
<option v-for="item in items" :value="item.id">
{{item.name}}
</option>
</select>
</div>
</template>
@nuria-fl
nuria-fl / Home.vue
Created June 30, 2017 17:08
Vue tutorial: Comunicación con la api
<template>
<div>
<article v-for="movie in movies">
<img :src="`https://image.tmdb.org/t/p/w500/${movie.poster_path}`" alt="">
<h4>{{ movie.title }}</h4>
<p>{{movie.vote_average}}</p>
</article>
</div>
</template>
@nuria-fl
nuria-fl / Home.vue
Created June 30, 2017 17:04
Vue tutorial: Crear un componente
<template>
<div>
<article v-for="movie in movies">
<img :src="`https://image.tmdb.org/t/p/w500/\${movie.poster_path}`" alt="">
<h4>{{ movie.title }}</h4>
<p>{{ movie.vote_average }}</p>
</article>
</div>
</template>