Skip to content

Instantly share code, notes, and snippets.

View ivansnek's full-sized avatar

Ivan Eusebio ivansnek

View GitHub Profile
import React, { useState, useEffect } from 'react'
import { useInterval } from './useInterval';
import { injectRecaptchaScript, isReCaptchaReady } from './g-recaptcha';
import './styles.css';
/**
* Simple auto-loadable Google ReCaptcha component
*
* @param {object} component properties
@ivansnek
ivansnek / arrayUtils.js
Created August 13, 2019 22:01
Array Flatten Exercise
/*
*****************************************************************************************
* Source File
* Copyright (C) 2019 IvanSnek
*
* [CHANGE HISTORY]
* 1. 2019-Aug-13 (ivansnek) File created
*
*****************************************************************************************
*/
@ivansnek
ivansnek / chart.html
Last active December 22, 2015 17:09
High Chart test
<html>
<head>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<title>High Chart</title>
</head>
<body>
@ivansnek
ivansnek / ejercicios.rb
Last active October 19, 2019 23:34
Ejercicios Crowd Interactive
#Ejercicio1
preguntas = ["Como te llamas?","De donde eres?","Te gusta Ruby","Vives en Colima?","Que dia es hoy?","Tienes cuenta en GitHub?","Tienes mascota?","Te gusta programar?","Cuanto es 3 + 5?","Sabes Programar?"]
puts preguntas.sample
puts preguntas.sample until gets.chomp.eql? "bye"
#Ejercicio 2
def factorial (n = 1)
return n unless n!=1