Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am vilsbole on github.
  • I am vilsbole (https://keybase.io/vilsbole) on keybase.
  • I have a public key ASDFvPkp9pR9G5iNHMmRY-DAlYHWDji1-REsfTMZZMofogo

To claim this, I am signing this object:

@vilsbole
vilsbole / simple_slider.md
Last active June 24, 2019 13:42
React Exercice @Mycrypto 2019

MyCrypto React Exercice

Using React and the Unsplash api, create a slider with two navigation butttons and a search bar to search for images.

slider_mockup

  1. The search bar will accept a keyword from the user and fetch an associated image e.g. https://source.unsplash.com/1600x900/?nature,water
  2. On next it will fetch another keyword associated image.
  3. On previous it will display the previous image.
# Inside CryptoTux VM
# 1. Install nvm
# Version manager for node
# https://github.com/nvm-sh/nvm#installation-and-update
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
# 1.a Reload your terminal session
source ~/.bash_profile
pragma solidity ^0.5.6;
contract SceneOuverte {
string[12] public passagesArtistes;
uint public creneauxLibres = 12;
uint tour;
function sInscrire(string memory nomDartiste) public {
if (creneauxLibres > 0) {
passagesArtistes[12 - creneauxLibres] = nomDArtiste;
@vilsbole
vilsbole / js_puzzle.js
Last active May 8, 2018 16:56
Batch #146 Livecode - frontend/05-Javascript & the DOM
/* JS PUZZLE */
/* Display Hint */
const button = document.getElementById('show-hint');
const hint = document.querySelector('.hint');
function displayHint (event) {
hint.classList.toggle("active");
}