Skip to content

Instantly share code, notes, and snippets.

View AdamMarsden's full-sized avatar

Adam Marsden AdamMarsden

View GitHub Profile
@AdamMarsden
AdamMarsden / zshgit.md
Last active November 15, 2024 02:40
Oh My Zsh - Git Cheat Sheet

#Oh My Zsh - Git Cheat Sheet

ggit

gstgit status

glgit pull

gupgit pull --rebase

@AdamMarsden
AdamMarsden / sassas.md
Last active October 20, 2024 01:04
Sass Architecture Structure

Sass Architecture Structure

sass/
|
|– base/
|   |– _reset.scss       # Reset/normalize
|   |– _typography.scss  # Typography rules
|   ...                  # Etc…
|
@AdamMarsden
AdamMarsden / left_right_line.html
Created April 14, 2015 09:13
Left & right border lines next to text
<div class="left_right_lines">
<span>
<h6>Text with lines</h6>
</span>
</div>
@AdamMarsden
AdamMarsden / cssdo.md
Last active July 30, 2024 15:28
CSS Declaration order

CSS Declaration Order

Related property declarations should be grouped together following the order:

  • Box
  • Border
  • Background
  • Text
  • Other

Box includes any property that affects the display and position of the box such as display, float, position, left, top, height, width and so on. These are most important because they affect the flow of the rest of the document.

sassLint = require('gulp-sass-lint');
gulp.task('sass-lint', function () {
return gulp.src([
'sass/**/*.scss',
'!sass/dont-watch-this.scss'
])
.pipe(sasslint())
.pipe(sasslint.format())
.pipe(sasslint.failOnError())