Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Steve Griffith prof3ssorSt3v3

🎯
Focusing
View GitHub Profile
View meta-tags.md

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@prof3ssorSt3v3
prof3ssorSt3v3 / SassMeister-input.scss
Created Nov 10, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
$font-title: Georgia, serif;
$red-color: #dd1212;
h1{
@prof3ssorSt3v3
prof3ssorSt3v3 / SassMeister-input.scss
Created Nov 11, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
@mixin test($fs, $box...){
font-size:$fs;
box-shadow:$box;
}
@prof3ssorSt3v3
prof3ssorSt3v3 / SassMeister-input.scss
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
@mixin linear-gradient($from, $to){
background-color:$to;/* Fallback colour */
background-image: -webkit-gradient(linear, left top, left bottom, from($from),to($to));
//safari / webkit old version
background-image: -webkit-linear-gradient(top $from, $to);
@prof3ssorSt3v3
prof3ssorSt3v3 / SassMeister-input.scss
Created Nov 11, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
/***********
Multi-line comments are saved in css
***********/
//single-line comments do NOT get moved
@prof3ssorSt3v3
prof3ssorSt3v3 / SassMeister-input.scss
Created Nov 11, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
.math-container{
// Add
width: 50 + 50px;
// Subtract
View normalize.scss
// =============================================================================
// Normalize.scss based on Nicolas Gallagher and Jonathan Neal's
// normalize.css v2.1.3 | MIT License | git.io/normalize
// =============================================================================
// =============================================================================
// Normalize.scss settings
// =============================================================================
View sample.xml
<?xml version="1.0" encoding="UTF-8"?>
<data>
<movie id="tt0118715" title="The Big Lebowski" imdb-url="http://www.imdb.com/title/tt0118715/?ref_=ttfc_fc_tt">
<characters>
<character>
<name>The Dude</name>
<actor>Jeff Bridges</actor>
</character>
<character>
<name>Walter Sobchak</name>
View spread-rest.js
//SPREAD and REST operators
//Added with ES6
// ...
// two sides of the same operation
let beers = ['Corona', 'Heineken'];
let stuff = [22, 'Bob', true, beers];
//SPREAD - expands an array into its elements
myFunc( ...stuff );
View settimeout.js
// setTimeout
// How to use setTimeout, clearTimeout, setInterval
// and clearInterval
//
function log(msg){
console.log('MESSAGE', msg);
clearInterval(tommy);
}