Skip to content

Instantly share code, notes, and snippets.

View silkyfray's full-sized avatar
⚖️

Tony Nikolov silkyfray

⚖️
View GitHub Profile
// const MAX_GRID_Y = 10;
// const MAX_GRID_X = 10;
// const START_POS_Y = 0;
// const START_GRID_X = 0;
interface Coordinate {
x: number;
y: number;
}
@silkyfray
silkyfray / Example template
Last active January 10, 2020 08:59
Example template
# Ticket-XXX-Number - Fixing Things
Delete any list items or questions that aren't relevant - if they're left unfilled it's assumed that
they're relevant but your PR isn't finished yet.
Write a short description of what the PR achieves.
## PR Declaration
* [ ] I have implemented a feature, bug or improvement
@silkyfray
silkyfray / dob.jsx
Created January 5, 2020 21:57
How to use Bulma Calendar in React
import React, { useEffect } from 'react';
import bulmaCalendar from 'bulma-calendar/dist/js/bulma-calendar.min';
import "~bulma-calendar/dist/css/bulma-calendar.min.css"
function Dob({ className }) {
useEffect(() => {
// Initialize all input of date type.
const calendars = bulmaCalendar.attach('[type="date"]', {});
// Loop on each calendar initialized
@silkyfray
silkyfray / file2
Created November 23, 2012 20:24
file2
five