This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* Dependencies | |
* $ npm i -D gulp gulp-load-plugins gulp-sass gulp-sourcemaps browser-sync gulp-autoprefixer gulp-concat gulp-uglify gulp-rename | |
*/ | |
var gulp = require('gulp'); | |
var $ = require('gulp-load-plugins')(); | |
var browserSync = require('browser-sync').create(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Flexbox</title> | |
<link rel="stylesheet" href="styles/css/app.css"> | |
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div class="bar"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.container { | |
height: 600px; | |
line-height: 600px; | |
width: 100%; | |
text-align: center; | |
.wrapper { | |
line-height: normal; | |
vertical-align:middle; | |
display:inline-block; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin clearfix { | |
&:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Grid variables | |
$site-width: 1180px; | |
$grid-columns: 12; | |
$grid-max-width: 65em; | |
// Breakpoints | |
$breakpoint: "only screen and (min-width: 45em)"; | |
.container { | |
max-width: $site-width; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
connect = require('gulp-connect'), | |
plumber = require('gulp-plumber'); | |
gulp.task('sass', function() { | |
return gulp.src('sass/app.scss') | |
.pipe(plumber()) | |
.pipe(sass()) | |
.pipe(gulp.dest('css/')) |
cd
: Se déplacer de dossier en dossier (change directory)
mkdir
: Créer un nouveau dossier (make directory)
ls
: Liste le contenu d'un dossier.
ls -a
: Liste le contenu d'un dossier même ses éléments cachés.
mv
: Déplacer un dossier ou un fichier
NewerOlder