- 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:
import React from "react"; | |
import PropTypes from "prop-types"; | |
class Image extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { src: props.src }; | |
} | |
componentWillReceiveProps(nextProps) { |
'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); |
const express = require("express"); | |
const router = express.Router(); | |
const User = require("../models/user"); | |
const AWS = require("aws-sdk"); | |
AWS.config.update({ | |
accessKeyId: process.env.accessKeyId, | |
secretAccessKey: process.env.secretAccessKey, | |
region: "us-east-1" | |
}); |
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()); |
git clone https://github.com/teleporthq/teleport-code-generators.git
git remote add --track master teleporthq https://github.com/teleporthq/teleport-code-generators.git
node_modules |
/* total width */ | |
::-webkit-scrollbar { | |
width: 14px; | |
} | |
::-webkit-scrollbar-track { | |
box-shadow: inset 0 0 14px 14px transparent; | |
border: solid 4px transparent; | |
} |
# This file contains pin mappings for the Creality Ender 5 Plus. | |
# Ender 5 Plus stock uses a Creality v2.2 board, similar to CR-20 Pro. | |
# To use this config, the firmware should be compiled for the AVR atmega2560. | |
# See the example.cfg file for a description of available parameters. | |
[stepper_x] | |
step_pin: PF0 | |
dir_pin: PF1 | |
enable_pin: !PD7 |
Calibrate probe | |
PROBE_CALIBRATE | |
TESTZ Z=-.1 | |
ACCEPT | |
SAVE_CONFIG | |
SET_GCODE_OFFSET Z=+.010 |