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 / steam_sync.rb
Created Aug 20, 2014
Sync Steam game-data to Google Drive folder
View steam_sync.rb
#!/usr/bin/env ruby -w
USER = `whoami`.chomp
SOURCE = "/Users/#{USER}/Library/Application Support/"
TARGET = "/Users/#{USER}/Google Drive/Backups/Steam/in Application Support/"
class String
def shell_safe
self.gsub(/(\s)/, '\\\\\1')
@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
}
@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 / 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 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 / 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 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);
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 / 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 / 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:

You can’t perform that action at this time.