- Clone your favorite project:
git clone https://github.com/teleporthq/teleport-code-generators.git
- Add remonte branch:
git remote add --track master teleporthq https://github.com/teleporthq/teleport-code-generators.git
- Verify if the remote was added:
/* total width */ | |
::-webkit-scrollbar { | |
width: 14px; | |
} | |
::-webkit-scrollbar-track { | |
box-shadow: inset 0 0 14px 14px transparent; | |
border: solid 4px transparent; | |
} |
node_modules |
git clone https://github.com/teleporthq/teleport-code-generators.git
git remote add --track master teleporthq https://github.com/teleporthq/teleport-code-generators.git
router.get('/payments', verifyJWT_MW, function(req, res) { | |
try { | |
let transactions = []; | |
const stream = Braintree.gateway.transaction.search(function(search) { | |
search.customerId().is(req.user.account.braintreeCustomerId); | |
}); | |
stream.on('ready', function() { | |
console.log(stream.searchResponse.length()); |
'use strict'; | |
const crypto = require('crypto'); | |
const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bytes (32 characters) | |
const IV_LENGTH = 16; // For AES, this is always 16 | |
function encrypt(text) { | |
let iv = crypto.randomBytes(IV_LENGTH); | |
let cipher = crypto.createCipheriv('aes-256-cbc', new Buffer(ENCRYPTION_KEY), iv); |
machine: | |
node: | |
version: 8 | |
deployment: | |
staging: | |
branch: master | |
owner: my-company | |
commands: | |
- ./deploy-staging.sh | |
production: |
/* global window */ | |
import React from 'react' | |
import PropTypes from 'prop-types' | |
const InputField = ({ | |
label = 'Password', | |
invalidLabel = 'The password field is required.', | |
placeholder = 'Enter your password', | |
input, | |
onSubmit, |
React Component Lifecycle
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: 'circleci/node:9.7.1' | |
branches: | |
only: | |
- master | |
steps: | |
- checkout |