- 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:
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; | |
} |
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) { |
Calibrate probe | |
PROBE_CALIBRATE | |
TESTZ Z=-.1 | |
ACCEPT | |
SAVE_CONFIG | |
SET_GCODE_OFFSET Z=+.010 |
Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.
const web3 = require('@solana/web3.js'); | |
const splToken = require('@solana/spl-token'); | |
(async () => { | |
//create connection to devnet | |
const connection = new web3.Connection(web3.clusterApiUrl("devnet")); | |
//generate keypair and airdrop 1000000000 Lamports (1 SOL) | |
const myKeypair = web3.Keypair.generate(); |
import { | |
Account, | |
clusterApiUrl, | |
Connection, | |
PublicKey, | |
sendAndConfirmTransaction, | |
SystemProgram, | |
Transaction, | |
} from '@solana/web3.js'; |