Skip to content

Instantly share code, notes, and snippets.

Avatar

Erik Hellman ehellman

View GitHub Profile
@ehellman
ehellman / input.scss
Created Dec 10, 2020
Generated by SassMeister.com.
View input.scss
$spacing-mobile-tiny: 0.8rem;
$spacing-mobile-xsmall: 1.6rem;
$spacing-mobile-small: 2rem;
$spacing-mobile-medium: 2.4rem;
$spacing-mobile-large: 3.2rem;
$spacing-mobile-xlarge: 4rem;
$spacing-desktop-tiny: 1.6rem;
$spacing-mobile-xsmall: 2rem;
@ehellman
ehellman / input.scss
Created Dec 10, 2020
Generated by SassMeister.com.
View input.scss
$spacing-mobile-tiny: 0.8rem;
$spacing-mobile-xsmall: 1.6rem;
$spacing-mobile-small: 2rem;
$spacing-mobile-medium: 2.4rem;
$spacing-mobile-large: 3.2rem;
$spacing-mobile-xlarge: 4rem;
$spacing-desktop-tiny: 1.6rem;
$spacing-mobile-xsmall: 2rem;
@ehellman
ehellman / input.scss
Created Dec 10, 2020
Generated by SassMeister.com.
View input.scss
$spacing-mobile-tiny: 0.8rem;
$spacing-mobile-xsmall: 1.6rem;
$spacing-mobile-small: 2rem;
$spacing-mobile-medium: 2.4rem;
$spacing-mobile-large: 3.2rem;
$spacing-mobile-xlarge: 4rem;
$spacing-desktop-tiny: 1.6rem;
$spacing-mobile-xsmall: 2rem;
@ehellman
ehellman / Configuration.h
Created Aug 22, 2020
Marlin 2.0.x with SKR Mini v2.0
View Configuration.h
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@ehellman
ehellman / es6-and-legacy-bundle-loading-minified.html
Last active Mar 8, 2018
A way to serve ES6 bundles to ES6 browsers and serve ES5 to the rest.
View es6-and-legacy-bundle-loading-minified.html
<!DOCTYPE html>
<html>
<head>
<title>ES6 and Legacy bundle loading</title>
</head>
<body>
Hi
<script>
// populate this on the server or via webpack
window.__APP_CHUNKS__ = {
View Layout.js
const Layout = ({ location, initialData, routeData, authenticateUser }) => (
<Wrapper>
<Container>
<Header>
<Navigation />
</Header>
<Switch>
// how do I get these props passed through the HOC? render instead of component made no difference.
<Route exact path="/pages/page-one" component={() => <PageOne routeData={routeData} title="PageOne" />} />
<Route exact path="/pages/page-two" component={() => <PageTwo routeData={routeData} title="PageTwo" />} />
View empty_bem-blueprint.scss
///
/// THE <blueprint> BLOCK
///
///============================================================================
///
/// @description
/// desc
///
///============================================================================
///
View bem-component-blueprint.scss
///
/// THE <BLUEPRINT> BLOCK
///
///============================================================================
///
/// @description
/// desc
///
/// @usage
/// <div class="blueprint">
View init.coffee
# 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 log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
View gist:44f50b29d2fcf44ec459
# Wipe Launchpad Database
sqlite3 ~/Library/Application\ Support/Dock/*.db “DELETE from apps; DELETE from groups WHERE title<>”; DELETE from items WHERE rowid>2;”; Killall Dock