Skip to content

Instantly share code, notes, and snippets.

🏠
Workin' in Autodesk's private repos...

Philip Blyth nemoDreamer

🏠
Workin' in Autodesk's private repos...
Block or report user

Report or block nemoDreamer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nemoDreamer
nemoDreamer / README.md
Last active May 10, 2018
`React.cloneElement` vs. `Render Prop` pattern benchmarking
View README.md

React.cloneElement vs. Render Prop pattern benchmarking

Run:

babel clone-element-vs-render-prop.jsx | node

Result:

@nemoDreamer
nemoDreamer / git-prune-branches.sh
Created Oct 13, 2017
Prune local and remote merged branches
View git-prune-branches.sh
#!env bash
# NOTE: based on
# https://coderwall.com/p/fkk2lw/bash-script-to-clean-up-obsolete-git-branches
# Changes made to first only remove branches you've checked out,
# then 2nd repo-wide check.
# also added human-readable output and prompts
# This has to be run from master
git checkout master
@nemoDreamer
nemoDreamer / styles.less
Created May 20, 2017
Subtle italics in Atom syntaxes
View styles.less
atom-text-editor.editor {
.syntax--punctuation.syntax--whitespace.syntax--comment.syntax--leading,
.syntax--source {
font-family: FiraCode-Retina; // https://github.com/tonsky/FiraCode
text-rendering: optimizeLegibility;
letter-spacing: 0;
}
.syntax--string.quoted,
.syntax--string.regexp {
View styles.less
atom-text-editor::shadow {
.source {
font-family: FiraCode-Retina;
text-rendering: optimizeLegibility;
}
.string.quoted,
.string.regexp {
-webkit-font-feature-settings: "liga" off, "calt" off;
}
@nemoDreamer
nemoDreamer / SassMeister-input.scss
Created Jun 16, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
$nav_light_color: white;
$nav_dark_color: black;
%base_nav_item {
color: darken($nav_light_color, 25);
@nemoDreamer
nemoDreamer / SassMeister-input.scss
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
$nav_light_color: white;
$nav_dark_color: black;
%base_nav_item {
color: darken($nav_light_color, 25);
@nemoDreamer
nemoDreamer / SassMeister-input.scss
Created Jun 15, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
.base_nav_item {
display: -webkit-box;
display: -moz-box;
-webkit-box-orient: vertical;
-moz-box-orient: vertical;
-webkit-box-align: center;
@nemoDreamer
nemoDreamer / SASS-input.scss
Created Jun 11, 2015
Sadly, this doesn't work...
View SASS-input.scss
// Palette
$dark-color: #000;
$light-color: #fff;
// Theme mixins
@mixin sg_themed {
$foreground-color: $dark-color;
$background-color: $light-color;
@nemoDreamer
nemoDreamer / SassMeister-input.scss
Created Jun 11, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.4)
// ----
// Palette
$dark-color: #000;
$light-color: #fff;
// Theme mixins
@nemoDreamer
nemoDreamer / 01_user_function.less
Last active Aug 29, 2015
User function approximation in server-side LESS (and a true greyscale "function")
View 01_user_function.less
@color: #f88;
/* LESS admits that their greyscale function doesn't respect relative lightness */
.bad_grayscale {
original-color: @color;
desaturated: desaturate(@color, 100%);
greyscaled: greyscale(@color); // synonymous
}
You can’t perform that action at this time.