This file contains hidden or 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
import React from "react" | |
import PropTypes from "prop-types" | |
import { Helmet } from "react-helmet" | |
import { useLocation } from "@reach/router" | |
import { useStaticQuery, graphql } from "gatsby" | |
const SEO = ({ title, description, image, article }) => { | |
const { pathname } = useLocation() | |
const { site } = useStaticQuery(query) | |
const { | |
defaultTitle, |
This file contains hidden or 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
const { RichText } = require('prismic-dom'); | |
const Prism = require('prismjs'); | |
require('prismjs/components/prism-javascript'); | |
require('prismjs/components/prism-css'); | |
require('prismjs/components/prism-scss'); | |
require('prismjs/components/prism-jsx'); | |
require('prismjs/components/prism-bash'); | |
require('prismjs/components/prism-json'); | |
require('prismjs/components/prism-diff'); |
This file contains hidden or 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
{ | |
"scripts": { | |
"build-css": "node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/", | |
"watch-css": "npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive", | |
"start-js": "react-scripts start", | |
"start": "npm-run-all -p watch-css start-js", | |
"build-js": "react-scripts build", | |
"build": "npm-run-all build-css build-js", | |
"test": "react-scripts test --env=jsdom", | |
"eject": "react-scripts eject" |
This file contains hidden or 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
{ | |
"scripts": { | |
"start": "react-scripts start", | |
"build": "react-scripts build", | |
"test": "react-scripts test — env=jsdom", | |
"eject": "react-scripts eject" | |
} | |
} |
This file contains hidden or 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
{ | |
"window.zoomLevel": 0, | |
"editor.formatOnSave": true, | |
"editor.multiCursorModifier": "ctrlCmd", | |
"editor.fontFamily": "Operator Mono Medium ", | |
"editor.renderWhitespace": "all", | |
"editor.fontSize": 17, | |
"editor.fontLigatures": true, | |
"workbench.colorTheme": "Cobalt2", | |
"workbench.editor.showIcons": true, |
This file contains hidden or 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 webpack = require("webpack"); | |
var path = require("path"); | |
const removeEmpty = array => array.filter(p => !!p); | |
module.exports = { | |
entry: { | |
app: path.join(__dirname, "src"), | |
vendor: ["react", "react-dom", "react-router-dom", "react-form"] | |
}, |
This file contains hidden or 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 webpack = require("webpack"); | |
var path = require("path"); | |
module.exports = { | |
entry: path.join(__dirname, "src"), | |
output: { | |
path: path.join(__dirname, "dist"), | |
filename: "elperverso_app.js" | |
}, | |
module: { |
This file contains hidden or 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
{ | |
"posts": [{ | |
"id": 1, | |
"title": "API REST para pruebas en 5 minutos, publicado en internet", | |
"author": "@devrchancay", | |
"url": "https://medium.com/p/734d31660d1e/" | |
}], | |
"comments": [{ | |
"body": "¡Qué buen post! Gracias a esto vendi un proyecto millonario", | |
"postId": 1, |
This file contains hidden or 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 path = require('path'); | |
module.exports = { | |
entry: './src/main.js', | |
output: { | |
path: __dirname, | |
filename: 'bundle.js' | |
}, | |
module: { | |
loaders: [ | |
{ test: path.join(__dirname, 'src'), |
This file contains hidden or 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
CURRENT_BG='NONE' | |
() { | |
local LC_ALL="" LC_CTYPE="en_US.UTF-8" | |
SEGMENT_SEPARATOR=$'\ue0b0' | |
} | |
prompt_segment() { | |
local bg fg | |
[[ -n $1 ]] && bg="%K{$1}" || bg="%k" |
NewerOlder