View Request
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
curl -v https://api.sandbox.paypal.com/v1/payments/payment \ | |
-H 'Content-Type: application/json' \ | |
-H 'Authorization: Bearer A21AAG_sHaCrvQURWObVETp38N6Hres90O6oo8lbrMQBe9YhlODYYni_gx1H8LCF_m97NcmoUmOJ2DB0c2E7HATqyDkDNMagQ' \ | |
-d '{ | |
"intent":"sale", | |
"payer":{ | |
"payment_method":"paypal" | |
}, | |
"transactions":[ | |
{ |
View bpri-article.js
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
if (pluginHelper.startsWith(givenPath, '$/')) { | |
path.node.source.value = pluginHelper.transformReflectiveToRootPath( | |
givenPath, | |
state.file.opts.filename, | |
rootPathSuffix, | |
testFolder, | |
); | |
} |
View curry.js
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
// versao sem curry | |
function fatiar(prato1, prato2, prato3, prato4, pizza) { // nossa pizza aqui é de pedaçoes grandes | |
return [ | |
{ | |
[prato1]: pizza/4 | |
}, | |
{ | |
[prato2]: pizza/4, | |
}, |
View CombineShape.js
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
// essa funcao receber n numeros of shapes | |
// cada shape com posicao e seu centro | |
// e devolvera um array bidimencional | |
const dot = [ | |
[1] | |
] | |
const square = [ | |
[1, 1 ], | |
[1, 1], |
View backoffice-header.js
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
import React from 'react'; | |
export function BackofficeHeader(props) { | |
return <div> | |
<h1>{props.title}</h1> | |
<p class="subtitle"> {props.subtilte || ''} </p> | |
{props.children} | |
</div> | |
} |
View backoffice-header.vue
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
<script> | |
export default { | |
name: "backoffice-header", | |
props: { title: { type: String, required: true }, subtitle: { type: String, required: false, default: '' } } | |
} | |
</script> | |
<template> | |
<h1> {{title}}</h1> | |
<p class="subtitle"> {{subtitle}}</p> | |
<slot></slot> |
View backoffice-header.class.js
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
import React from 'react'; | |
export class BackofficeHeader extends React.Component { | |
render() { | |
const {props} = this | |
return <div> | |
<h1>{props.title}</h1> | |
<p class="subtitle"> {props.subtilte || ''} </p> | |
{props.children} |
View backoffice-header.js
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
import { LitElement, html } from 'lit-element'; | |
class BackofficeHeader extends LitElement { | |
static get properties() { | |
return { | |
title: String, | |
subtitle: String, | |
}; | |
} | |
render(){ |
View garage-service.spec.js
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
import { GarageRepo, GarageService } from '../../src'; | |
describe('Garage Service test', () => { | |
it('should GarageService be defined', () => { | |
expect(GarageService).toBeDefined(); | |
}); | |
}) | |
View garage-repo.js
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
export default class GarageRepo { | |
constructor(mysql, redis) { | |
this.mysql = mysql; | |
this.redis = redis; | |
} | |
} |
OlderNewer