Skip to content

Instantly share code, notes, and snippets.

Jonatan Fekete johnnyfekete

View GitHub Profile
@johnnyfekete
johnnyfekete / 0_reuse_code.js
Created Feb 25, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@johnnyfekete
johnnyfekete / docker-compose.yml
Last active Sep 3, 2016
A docker compose file to work with two or more MySQL containers
View docker-compose.yml
version: '2'
services:
# Web server
web:
build:
context: ./
dockerfile: Dockerfile
ports:
- "80:80"
@johnnyfekete
johnnyfekete / date-field.js
Created Nov 1, 2018
A react.js date field with masked input
View date-field.js
import React, { Component } from 'react';
import DatePicker from 'react-datepicker';
import MaskedInput from 'react-maskedinput';
import moment from 'moment';
export default class DateField extends Component {
constructor(props) {
super(props);
this.state = { value: '' }
You can’t perform that action at this time.