Skip to content

Instantly share code, notes, and snippets.

View ciases's full-sized avatar

Dmitry Pashkovets ciases

View GitHub Profile
@ciases
ciases / readme.md
Created April 11, 2016 14:03
Bootstrap Sass Installation and Customization

Bootstrap Sass Installation and Customization

  1. run bower install bootstrap-sass inside project root
  2. copy _variables.scss to sass forder, rename it to _customVariables.scss
  3. add imports to main.scss:
@import "customVariables";
@import "../bower_components/bootstrap-sass/assets/stylesheets/bootstrap";
@ciases
ciases / touch-device-detect.js
Created April 7, 2016 11:30
Detect touch device js snippet
if (!("ontouchstart" in document.documentElement)) {
document.documentElement.className += " no-touch";
}
@ciases
ciases / git-zip-changed-files.md
Last active March 23, 2024 16:37
Git: zip changed files + diff

GIT: zip changed files + diff

Create zip archive with changed files

git archive -o update.zip HEAD $(git diff --name-only <starting SHA> HEAD)

or