- Create new project:
gatsby new project-name
- Install packages:
npm i --save gatsby-plugin-react-svg gatsby-source-contentful gatsby-transformer-remark
npm i --save gatsby-plugin-react-leaflet react-leaflet leaflet
gatsby new project-name
npm i --save gatsby-plugin-react-svg gatsby-source-contentful gatsby-transformer-remark
npm i --save gatsby-plugin-react-leaflet react-leaflet leaflet
node_modules/ | |
debug.log | |
.vscode/ | |
package-lock.json |
{ | |
"extends": "airbnb", | |
"rules": { | |
"linebreak-style": ["error", "windows"] | |
} | |
} |
# ###################################################################### | |
# # WEB PERFORMANCE # | |
# ###################################################################### | |
# ---------------------------------------------------------------------- | |
# | Compression | | |
# ---------------------------------------------------------------------- | |
<IfModule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/plain |
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '559296987609754',
xfbml : true,
version : 'v2.6'
# variables, asignación, vector y secuenciación | |
x <- c(seq(1,10)) #[1] 1 2 3 4 5 6 7 8 9 10 | |
y <- c(seq(0.1, 1, 0.1)) #[1] 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 | |
#acceso (índice empieza en 1, no en cero) | |
#también sirve para editar y agregar valores | |
y[2] #[1] 0.2 | |
#acceso múltiple y rangos | |
y[c(2,4)] #[1] 0.2 0.4 |
slim framework 3: <= php 5.5.0
cygwin bash prompt:
SLIM1: //// http://www.slimframework.com/docs/start/installation.html $ composer require slim/slim "^3.0" + vendor - autoload.php
/* | |
npm init | |
npm install gulp gulp-sass gulp-autoprefixer gulp-cssnano gulp-rename gulp-concat gulp-uglify gulp-htmlmin gulp-plumber --save-dev | |
*/ | |
'use strict'; | |
//plugins | |
var gulp = require('gulp'), |
<!doctype html> | |
<html lang="es"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> | |
<meta property="og:title" content="¡large title about app!"> | |
<meta property="og:site_name" content="app name"> | |
<meta property="og:url" content="http://www.app.com"> | |
<meta property="og:description" content="two lines description"> | |
<meta property="og:type" content="website"> |