Skip to content

Instantly share code, notes, and snippets.

View gostrafx's full-sized avatar

GOSTRA FX gostrafx

View GitHub Profile
@gostrafx
gostrafx / HTML Emails.md
Created May 19, 2019 22:29
HTML Emails

Properties to avoid

Property Where
position (Outlook, Gmail, Yahoo)
display (Outlook, Gmail)
float (Outlook)
--- ---
height (Outlook)
@gostrafx
gostrafx / Seo_meta_Tags.md
Created May 19, 2019 22:29
Seo Meta Tags

Meta tags

<meta charset='utf-8'>
<!-- title -->
<title>···</title>
@gostrafx
gostrafx / seo_head_Tags.md
Created May 19, 2019 22:28
Seo Head Tags

keywords:

  • Variables
  • mixins
  • darken()
  • adjust-color()
  • "@for @each @while @if @else"
  • "$list: (a b c)"
  • "$map: (a: b, c: d)"

Basics

@gostrafx
gostrafx / ECMAScript 6.md
Created May 19, 2019 22:22
ECMAScript 6

Introduction

ECMAScript 6, also known as ECMAScript 2015, is the latest version of the ECMAScript standard. ES6 is a significant update to the language, and the first update to the language since ES5 was standardized in 2009. Implementation of these features in major JavaScript engines is underway now.

See the ES6 standard for full specification of the ECMAScript 6 language.

ES6 includes the following new features:

@gostrafx
gostrafx / Javascript Promises.md
Created May 19, 2019 22:21
Javascript Promises

Based on the [Promise API reference][promise] (mozilla.org).

promise

Creating promises

new Promise(function (ok, err) {
 doStuff(function () {
  • gulp-ruby-sass
  • gulp-autoprefixer
  • gulp-minify-css
  • gulp-jshint
  • gulp-concat
  • gulp-uglify
  • gulp-imagemin
  • gulp-livereload (requires tiny-lr)
  • gulp-clean
  • gulp-cache
@gostrafx
gostrafx / Javascript Fetch.md
Created May 19, 2019 22:20
Javascript Fetch

Fetch

fetch('/data.json')
  .then(response => response.json())
  .then(data => {
    console.log(data)
  })
  .catch(err => ...)
@gostrafx
gostrafx / Vim cheat sheet.md
Last active May 19, 2019 22:17
Vim cheat sheet

A highly opinionated vim cheat sheet.

Copy / Cut / Paste (normal mode)

  • selecting:
    • v: start selecting characters
    • V: selects the whole line
  • action:
    • d: to cut
  • y: to copy