Skip to content

Instantly share code, notes, and snippets.

View ninjaPixel's full-sized avatar

Matt Michel ninjaPixel

View GitHub Profile
@ninjaPixel
ninjaPixel / index.html
Created April 24, 2018 13:29
A "Book Now" button with inline styling
<a href="https://app.barbershopbooking.co.uk/my_company_name">
<button style="font-size:32px;background-color:#FFEB3B; color:rgba(0, 0, 0, 0.87);padding:10px;border:none; box-shadow: 0 2px 4px rgba(0, 0, 0, .6);">
BOOK NOW
</button>
</a>
@ninjaPixel
ninjaPixel / index.html
Created April 24, 2018 13:11
A simple "Book Now" button
<a href="https://app.barbershopbooking.co.uk/my_company_name">
<button>Book now</button>
</a>
import _ from 'lodash';
import React from 'react';
import { Roles } from 'meteor/alanning:roles';
import { Route, Switch } from 'react-router-dom';
import Login from '../../screens/Login/Login';
import Home from '../../screens/Home/Home';
import Booking from '../../screens/Booking/Booking';
const staffRoles = ['admin', 'super-admin', 'staff'];
import React from 'react';
import { Route } from 'react-router-dom';
import InitialSetup from '../../screens/InitialSetup/InitialSetup';
import Staff from '../../screens/Staff/Staff';
export const Generate = (props) => {
return [
<Route path="/admin/initial-setup" component={InitialSetup} {...props} key="s1" />,
<Route path="/admin/staff" component={Staff} {...props} key="s2" />,
];
@ninjaPixel
ninjaPixel / index.html
Last active August 18, 2017 01:22
Multi Layer OpenStreetMap data with d3.js
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
margin: 0;
}
.map {
position: relative;
overflow: hidden;
}
@ninjaPixel
ninjaPixel / init.coffee
Last active March 29, 2017 13:12
Atom copy paste line shortcuts
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to make opened Markdown files always be soft wrapped:
#
# path = require 'path'
#
@ninjaPixel
ninjaPixel / README.md
Last active January 19, 2016 14:40
d3 colors for nick
@ninjaPixel
ninjaPixel / README.md
Created January 12, 2016 11:13
fresh block
@ninjaPixel
ninjaPixel / README.md
Last active November 19, 2015 17:21
Grouped Bar Chart
@ninjaPixel
ninjaPixel / README.md
Last active November 19, 2015 17:15
Grouped Bar Chart - Reusable