Skip to content

Instantly share code, notes, and snippets.


Gideon Kreitzer gidhon

Block or report user

Report or block gidhon

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

Keybase proof

I hereby claim:

  • I am gidhon on github.
  • I am gidhon ( on keybase.
  • I have a public key ASCh5-nkgYd67C60GxOj7V8HziFlnQ6dKNO7oihYgqdXTQo

To claim this, I am signing this object:

gidhon / snippets.cson
Created Oct 20, 2018
Stylus snippets for Platframe | editor: Atom
View snippets.cson
'Set size: 2D (equilateral | [width, height])':
prefix: 'size'
body: 'size($1px)'
'Unit conversion: px ⟶ rem':
prefix: 'rem'
body: 'rem($0px)'
'@media: min-width':
prefix: 'Platframe: min-width'
body: '+min($1)'
gidhon / stylus.json
Created Oct 20, 2018
Stylus snippets for Platframe | editor: VS Code
View stylus.json
"Set size: 2D (equilateral | [width, height])":{
"Platframe | size (both [w, h])",
"description":"Set the width and height of an element"
gidhon /
Last active Aug 29, 2015
Creating a new branch to discard commit history

Discard commits while saving changes


You have made some commits, pushed it upstream to the remote branch, then realized that some or all of those commits must for some reason not be included. In example, accidently commiting large multimedia files (blobs) that will forever bloat the commit history of the branch.

  1. ensure all changes are commited in your current, "faulty" branch
  2. switch to your master branch
    • git checkout master
  3. update master with latest changes on remote
gidhon /
Last active Feb 18, 2019
Git terminal commands reference guide.

Git Commands

Getting Started

git clone <local-name>
clone remote repository to the current directory

git remote add origin
add remote repository to git

View Stylus-Mixin-for-Linear-Gradients.markdown

Stylus Mixin for Linear Gradients

A Stylus mixin for linear gradients with support for comma-separated splat arguments. In part created as a work-around / abstraction for this.

The method for retrieving the fall-back background colour can do with some improvement, such as averaging the colours or selecting a colour by means of passing an additional argument.

View it on CodePen

You can’t perform that action at this time.