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
map("n", "<leader>fk", "<cmd>Telescope keymaps<CR>", { desc = "telescope keymaps" }) | |
map("n", "<leader>lr", "<cmd>Telescope lsp_references<CR>", { desc = "telescope LSP References" }) | |
map("n", "<leader>li", "<cmd>Telescope lsp_implementations<CR>", { desc = "telescope LSP Implementations"}) | |
map("n", "<leader>ld", "<cmd>Telescope lsp_definitions<CR>", { desc = "telescope LSP Definitions"}) | |
map("n", "<leader>lt", "<cmd>Telescope lsp_type_Definitions<CR>", { desc = "telescope LSP Type Definitions"}) | |
map("n", "<leader>ls", "<cmd>Telescope lsp_document_symbols<CR>", { desc = "telescope LSP Buffer Symbols"}) | |
map("n", "<leader>li", "<cmd>Telescope lsp_incoming_calls<CR>", { desc = "telescope LSP Incoming Calls"}) | |
map("n", "<leader>lo", "<cmd>Telescope lsp_outgoing_calls<CR>", { desc = "telescope LSP Outgoing Calls"}) |
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
## Images to PDF | |
convert XXXX* -quality 80 XXXX.pdf | |
## Images to PDF | |
convert XXXX* -quality 80 -page a4 XXXX.pdf |
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 Input from './input'; | |
import Label from './label'; | |
import FormGroup from './form-group'; | |
export default function Field ({children, name, inline, ...props}) { | |
return ( | |
<FormGroup inline={ inline }> | |
<Label inline={ inline } htmlFor={ name }>{ label }</Label> | |
<Input inline={ inline } { ...props } id={ name }> | |
{ children } |
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 Loader from '../components/loader'; | |
export default function fetchData(url, options) { | |
return (Component) => class fetchComponent extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
finished = false; | |
data = null; |
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 withLabel from './with-label'; | |
import Input from 'input'; | |
export default withLabel(Input); |
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'; | |
function Card (props) { | |
return ( | |
<div className={`card ${props.className}`}> | |
{ props.children } | |
</div> | |
); | |
} |
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 Label from './label'; | |
import Input from './input'; | |
function Field (props) { | |
return ( | |
<div className="form-group"> | |
<Label>{props.label}</Label> | |
<Input type={props.type} onChange={props.onChange} value={props.value}/> | |
</div> |
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
server.ext('onPreResponse', (request, reply) => { | |
const response = request.response; | |
if (response.variety && response.variety === 'view') { | |
response.source.context = response.source.context || {}; | |
if (request.auth.isAuthenticated) { | |
response.source.context.user = { | |
name: request.auth.credentials.name | |
}; | |
} |
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
'use strict'; | |
const Hapi = require('hapi'); | |
const Joi = require('joi'); | |
const server = new Hapi.Server(); | |
server.connection({ port: 3000 }); | |
server.route({ |
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
'use strict'; | |
const Hapi = require('hapi'); | |
const server = new Hapi.Server(); | |
server.connection({ port: 3000 }); | |
// our route with normal output | |
server.route({ |
NewerOlder