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
View keybase.md

Keybase proof

I hereby claim:

  • I am gidhon on github.
  • I am gidhon (https://keybase.io/gidhon) on keybase.
  • I have a public key ASCh5-nkgYd67C60GxOj7V8HziFlnQ6dKNO7oihYgqdXTQo

To claim this, I am signing this object:

@gidhon
gidhon / snippets.cson
Created Oct 20, 2018
Stylus snippets for Platframe | editor: Atom
View snippets.cson
'.source.stylus':
'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
gidhon / stylus.json
Created Oct 20, 2018
Stylus snippets for Platframe | editor: VS Code
View stylus.json
{
"Set size: 2D (equilateral | [width, height])":{
"prefix":[
"Platframe | size (both [w, h])",
"size"
],
"body":[
"size($0px)"
],
"description":"Set the width and height of an element"
@gidhon
gidhon / git_commit_reset.md
Last active Aug 29, 2015
Creating a new branch to discard commit history
View git_commit_reset.md

Discard commits while saving changes

Scenario

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
gidhon / git_commands.md
Last active Feb 18, 2019
Git terminal commands reference guide.
View git_commands.md

Git Commands

Getting Started

git clone git@github.com:username/repo_name.git <local-name>
clone remote repository to the current directory

git remote add origin git@github.com:username/repository_name.git
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.