Skip to content

Instantly share code, notes, and snippets.

View nemoDreamer's full-sized avatar
🔎
Working at SyncSketch.

Philip Blyth nemoDreamer

🔎
Working at SyncSketch.
View GitHub Profile
@nemoDreamer
nemoDreamer / steam_sync.rb
Created August 20, 2014 15:12
Sync Steam game-data to Google Drive folder
#!/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 August 29, 2015 14:06
User function approximation in server-side LESS (and a true greyscale "function")
@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 June 11, 2015 03:54
Generated by SassMeister.com.
// ----
// libsass (v3.2.4)
// ----
// Palette
$dark-color: #000;
$light-color: #fff;
// Theme mixins
@nemoDreamer
nemoDreamer / SASS-input.scss
Created June 11, 2015 15:02
Sadly, this doesn't work...
// 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 June 15, 2015 20:40
Generated by SassMeister.com.
// ----
// 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 August 29, 2015 14:23
Generated by SassMeister.com.
// ----
// 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 June 16, 2015 14:45
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$nav_light_color: white;
$nav_dark_color: black;
%base_nav_item {
color: darken($nav_light_color, 25);
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 / styles.less
Created May 20, 2017 12:16
Subtle italics in Atom syntaxes
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 {
@nemoDreamer
nemoDreamer / git-prune-branches.sh
Created October 13, 2017 18:38
Prune local and remote merged branches
#!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