Skip to content

Instantly share code, notes, and snippets.

View ivapie's full-sized avatar

Iván Piedra Rodríguez ivapie

View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=<device-width>, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<input type="number" id="minutes"/>
{
"period": {
"start": "2019-04-30",
"end": "2019-06-29"
},
"diagnosis": [
"232323"
],
"activity": [
{
@ivapie
ivapie / iris-tensorflow-js.js
Created February 7, 2019 19:18 — forked from learncodeacademy/iris-tensorflow-js.js
Solving Iris with Tensorflow.js and Iris JSON dataset
import * as tf from "@tensorflow/tfjs"
import "@tensorflow/tfjs-node"
import iris from "./iris.json"
import irisTesting from "./iris-testing.json"
// convert/setup our data
const trainingData = tf.tensor2d(iris.map(item => [
item.sepal_length, item.sepal_width, item.petal_length, item.petal_width,
]))
const outputData = tf.tensor2d(iris.map(item => [
/**
* Function to initiate the cronjob for all customers
* @params void
* @return void
*/
import * as functions from 'firebase-functions';
import * as req from "request";
import * as admin from 'firebase-admin';
const CronDaemon = functions.https.onRequest((request, response) => {
let FloatingBox = (function() {
let elements = {
leftColumn: null,
popularBox: null,
floatingBox: null,
newPosition: null,
defaultPosition: "0px",
porcent: null,
gutter: null
@ivapie
ivapie / multiple_ssh_setting.md
Created October 11, 2016 16:31 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
$pathURL: 'https://usquickstart.qbcontent.com/content/themes/qs2/resources/assets/fonts/';
@import "https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css";
@font-face {
font-family: 'AvenirNextRegular';
src: url('https://usquickstart.qbcontent.com/content/themes/qs2/resources/assets/fonts/AvenirNextLTW04-Regular.eot');
/* IE9 Compat Modes */
src: url('https://usquickstart.qbcontent.com/content/themes/qs2/resources/assets/fonts/AvenirNextLTW04-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('https://usquickstart.qbcontent.com/content/themes/qs2/resources/assets/fonts/AvenirNextLTW04-Regular.woff2') format('woff2'), /* Super Modern Browsers */
@font-face {
font-family: 'AvenirNextRegular';
src: url("https://usquickstart.qbcontent.com/content/themes/qs2/resources/assets/fonts/AvenirNextLTW04-Regular.eot");
/* IE9 Compat Modes */
src: url("https://usquickstart.qbcontent.com/content/themes/qs2/resources/assets/fonts/AvenirNextLTW04-Regular.eot?#iefix") format("embedded-opentype"), url("https://usquickstart.qbcontent.com/content/themes/qs2/resources/assets/fonts/AvenirNextLTW04-Regular.woff2") format("woff2"), url("https://usquickstart.qbcontent.com/content/themes/qs2/resources/assets/fonts/AvenirNextLTW04-Regular.woff") format("woff"), url("https://usquickstart.qbcontent.com/content/themes/qs2/resources/assets/fonts/AvenirNextLTW04-Regular.ttf") format("truetype"), url("https://usquickstart.qbcontent.com/content/themes/qs2/resources/assets/fonts/AvenirNextLTW04-Regular.svg#svgFontName") format("svg");
/* Legacy iOS */
}
@font-face {
font-family: 'AvenirNextMedium';
src: url("https://usquickstart.qbcontent.com/content/themes/qs2/resources
@ivapie
ivapie / weeklies.md
Created June 3, 2016 17:34 — forked from cayasso/weeklies.md
List of Weeklies
@ivapie
ivapie / .eslintrc
Created May 10, 2016 11:36 — forked from hendrikswan/.eslintrc
Packages and build config for Build Cross Platform React Native Apps with Exponent and Redux
{
"extends": "airbnb/base",
"plugins": [
"react"
],
"env": {
"node": true,
"jasmine": true,
},
"rules": {