create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| # Create build folder | |
| cd | |
| mkdir build | |
| cd build | |
| # Download repository from Bitbucket | |
| git clone {your git repo} | |
| cd {the name of your git repo}/ | |
| # Install dependencies |
| #!/usr/bin/env python | |
| import subprocess | |
| import sys | |
| import re | |
| import os | |
| def get_pids(port): | |
| command = "sudo lsof -i :%s | awk '{print $2}'" % port | |
| pids = subprocess.check_output(command, shell=True) |
| from pymongo import Connection | |
| from pymongo.collection import Collection | |
| from pymongo.errors import AutoReconnect | |
| from django.conf import settings | |
| from types import FunctionType | |
| import functools | |
| import time |
| #pbcopy < ~/.ssh/id_rsa.pub | |
| #or | |
| cat ~/.ssh/id_rsa.pub | pbcopy |
| class Demo extends React.Component { | |
| state = { | |
| data: [], | |
| refreshing: true, | |
| last_id: 0, | |
| } | |
| onEndReachedCalledDuringMomentum = true | |
| componentDidMount() { | |
| this._refreshData(); | |
| } |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
To see a full explanation, read my answer on SO here: https://stackoverflow.com/a/24232050/778272.
Create a folder, run npm init -f on it and paste both server.js and client.js there (see files below). Needless to say, you must have Node.js installed on your system.
Install the required libraries:
| const axios = require('axios') | |
| const qs = require('querystring') | |
| ... | |
| const requestBody = { | |
| name: 'Akexorcist', | |
| age: '28', | |
| position: 'Android Developer', | |
| description: 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/', |