Skip to content

Instantly share code, notes, and snippets.

View stormfar's full-sized avatar

Storm stormfar

View GitHub Profile
@stormfar
stormfar / index.js
Last active March 27, 2019 13:20
graphql-yoga index.js
require("dotenv").config({ path: ".env" });
const createServer = require("./createServer");
const server = createServer();
server.start(
{
cors: {
credentials: true,
@stormfar
stormfar / border-slant.scss
Last active August 29, 2015 14:15
A SCSS mixin to create a slanted border to an element using nothing but CSS. The defaults are set to match the project, but can easily be adjusted to when including the mixin on the element. See example here on nav items: http://swiftcarbon.com
// Slant left
@mixin border-slant-left($background-color: $blue, $left: -7px, $z-index: -1) {
&::before {
display: block;
content:" ";
width: 20px;
height: 100%;
top: 0;
background-color: $background-color;
position: absolute;