Skip to content

Instantly share code, notes, and snippets.

View yoelnacho's full-sized avatar
:octocat:
working

Ignacio Arguello yoelnacho

:octocat:
working
View GitHub Profile
@yoelnacho
yoelnacho / nuxt-js-and-gsheet-example.vue
Created June 28, 2020 15:56 — forked from mornir/nuxt-js-and-gsheet-example.vue
#sheets Nuxt.js vue component to display datas from a google spreadsheet (with google api V4 without oAuth )
<template>
<div id="homepage">
<h1>Les dernières Articles</h1>
<div class="article" v-for="article in articles">
<h2> {{ article.title }} </h2>
<p> {{ article.content }} </p>
</div>
</div>
</template>
@yoelnacho
yoelnacho / iOsNoBounc.md
Last active June 6, 2020 16:58
This works well with current Framework7 version to eliminate the bounce effect:
@yoelnacho
yoelnacho / keybinding.json
Created August 17, 2018 13:54
Vscode Keybindings
[
// duplicar línea abajo
{
"key": "shift+ctrl+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus"
}
]
@yoelnacho
yoelnacho / app.component.html
Last active August 15, 2018 20:55
Material input type=file
<div class="container">
<button md-raised-button color="primary" (click)="fileInput.click()">Upload</button>
<input hidden type="file" #fileInput>
</div>
@yoelnacho
yoelnacho / component.html
Created February 21, 2018 13:42
If condition in template
[ngValue]="item.value ? item.value : item"
@yoelnacho
yoelnacho / server.js
Created November 9, 2017 00:50
Create a server.js: javascript file with following code
const http = require('http');
const hostname = '127.0.0.1';
const port = 3000;
const server = http.createServer(function(req, res) {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World\n');
});
@yoelnacho
yoelnacho / iangularfire2 nstall
Last active August 21, 2018 13:12
Problema Promise<> en AngularFire2
npm install angularfire2@next -- save
@yoelnacho
yoelnacho / readme.md
Created September 14, 2017 15:37
Github Pages

angular-cli-ghpages

readme ghpages.

Install:

npm i -g angular-cli-ghpages

Usage:

@yoelnacho
yoelnacho / radio.component.html
Last active August 18, 2017 22:38
ionic3: (ionChange)
<ion-list radio-group (ionChange)="userSelected($event)">
<user *ngFor="let user of users"
[data]="user"></user>
</ion-list>
// Dentro de un grupo de radio buttons, al seleccionar alguno de los elementos
@yoelnacho
yoelnacho / interpolacion.ts
Created August 15, 2017 20:35
TS interpolación variable + string
question.title = `Hello ${this.name}, how old are you?`;