Skip to content

Instantly share code, notes, and snippets.

# 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
@ehellman
ehellman / bem-component-blueprint.scss
Last active February 7, 2017 11:25
BEM Blueprint
///
/// THE <BLUEPRINT> BLOCK
///
///============================================================================
///
/// @description
/// desc
///
/// @usage
/// <div class="blueprint">
@ehellman
ehellman / empty_bem-blueprint.scss
Created February 7, 2017 11:32
Empty BEM Blueprint
///
/// THE <blueprint> BLOCK
///
///============================================================================
///
/// @description
/// desc
///
///============================================================================
///
# 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 ->
@ehellman
ehellman / Layout.js
Created June 21, 2017 15:02
HOC Issue
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" />} />
@ehellman
ehellman / es6-and-legacy-bundle-loading-minified.html
Last active March 8, 2018 11:04
A way to serve ES6 bundles to ES6 browsers and serve ES5 to the rest.
<!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__ = {
@ehellman
ehellman / Configuration.h
Created August 22, 2020 19:59
Marlin 2.0.x with SKR Mini v2.0
/**
* 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 / input.scss
Created December 10, 2020 08:48
Generated by SassMeister.com.
$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 December 10, 2020 08:48
Generated by SassMeister.com.
$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 December 10, 2020 08:48
Generated by SassMeister.com.
$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;