Skip to content

Instantly share code, notes, and snippets.

Avatar

Iván Piedra Rodríguez ivapie

View GitHub Profile
View index.html
<!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"/>
View .json
{
"period": {
"start": "2019-04-30",
"end": "2019-06-29"
},
"diagnosis": [
"232323"
],
"activity": [
{
@ivapie
ivapie / iris-tensorflow-js.js
Created Feb 7, 2019 — forked from learncodeacademy/iris-tensorflow-js.js
Solving Iris with Tensorflow.js and Iris JSON dataset
View iris-tensorflow-js.js
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 => [
View CronDaemon
/**
* 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) => {
View Floating Component
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 Oct 11, 2016 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts
View multiple_ssh_setting.md

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 "your_email@youremail.com"
View gist:c2a978c281595796f43ce9de83ae76f3
$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 */
View gist:599f0339d05650d1747dcc4355fd1ac8
@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 Jun 3, 2016 — forked from cayasso/weeklies.md
List of Weeklies
View weeklies.md
@ivapie
ivapie / .eslintrc
Created May 10, 2016 — forked from hendrikswan/.eslintrc
Packages and build config for Build Cross Platform React Native Apps with Exponent and Redux
View .eslintrc
{
"extends": "airbnb/base",
"plugins": [
"react"
],
"env": {
"node": true,
"jasmine": true,
},
"rules": {