A highly opinionated vim cheat sheet.
- selecting:
v
: start selecting charactersV
: selects the whole line
- action:
d
: to cut
y
: to copy
<?php
<!-- Mon tableau -->
$retour = "<br />";
$prenom="John";//string
echo $prenom;
echo gettype($prenom);
echo $retour;
<?php
// Utilisez cette tête instruction pour corriger 404 têtes
// Produit par url rewriting ...
header('HTTP/1.1 200 OK');
// Page n'a pas été trouvé:
header('HTTP/1.1 404 Not Found');
"use strict"; | |
const {src, dest, watch, series, parallel, lastRun} = require('gulp'); | |
const del = require('del'); | |
const autoprefixer = require('autoprefixer'); | |
const cssnano = require('cssnano'); | |
const concat = require('gulp-concat'); | |
const browserSync = require('browser-sync'); | |
const uglify = require('gulp-uglify'); | |
const postcss = require('gulp-postcss'); |
Crée un point de communication et le retourne sous forme de ressource
socket_create
Permet de se connecter à une socket existante
socket_connect
Fetch
fetch('/data.json')
.then(response => response.json())
.then(data => {
console.log(data)
})
.catch(err => ...)
Based on the [Promise API reference][promise] (mozilla.org).
new Promise(function (ok, err) {
doStuff(function () {
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: