Skip to content

Instantly share code, notes, and snippets.

@riteshkawadkar
riteshkawadkar / part1.md
Created February 1, 2022 06:50 — forked from vlandham/part1.md
Feature Branches and Pull Requests : Walkthrough

Here's a little walkthrough of how Yannick and I are using feature branches and pull requests to develop new features and adding them to the project. Below are the steps I take when working on a new feature. Hopefully this, along with watching the process on Github, will serve as a starting point to having everyone use a similar workflow.

Questions, comments, and suggestions for improvements welcome!

Start with the latest on master

When starting a new feature, I make sure to start with the latest and greatest codebase:

git checkout master
from locale import currency
from freelancersdk.resources.projects import place_project_bid
from freelancersdk.session import Session
from freelancersdk.resources.users \
import get_self_user_id
from freelancersdk.resources.projects.projects import (
get_projects, get_project_by_id
)
from freelancersdk.resources.projects.helpers import (
create_get_projects_object, create_get_projects_project_details_object,
url = os.environ.get('FLN_URL')
bid_description = '''
★★★ Scrapping / Python / Selenium Expert ★★★ 6+ Years of Experience ★★★
Please allow me to generate a few sample entries in order to gain your trust and satisfaction. I have reviewed your project requirements closely and can help you with this. We can discuss also the complexity of the project so I can provide you with a realistic ETA and feel free to contact me through chat to talk about your project in more detail.
I have extensive knowledge of web scrapping with Python,scrapy, BeautifulSoup, Selenium. My extensive experience with web scraping using IP proxy rotation, multi thread and Bypassing captcha. You can see my past work on freelancer and on github.
I'll be glad to discuss project before start so let's chat.
Thanks for your consideration.
def sample_search_projects():
# create a session
session = Session(oauth_token=oauth_token, url=url)
# query string to filter jobs
query = 'scraper scraping scrape'
search_filter = create_search_projects_filter(
sort_field= 'time_updated', # sort jobs by descending order
min_avg_price=100, # only show jobs with in price of 100 USD
project_types='fixed', # only show jobs that has fixed budget, exclude hourly projects
p = sample_search_projects()
if p:
print('Found projects: {}'.format(p))
for x in p.get('projects'):
try:
bid = get_bids(session, **get_bids_data)
if bid:
print('Found bids: {}'.format(len(bid['bids'])))
if len(bid['bids']) < 20:
import requests
TELEGRAM_BOT_TOKEN = 'YOUR_TELEGRAM_BOT_TOKEN'
chat_id = "YOUR_GROUP_ID"
base_url = "https://api.telegram.org/bot" + YOUR_TELEGRAM_BOT_TOKEN
b = place_project_bid(session, **bid_data)
if b:
print('*********************')
print(("Bid placed: %s" % b))
from locale import currency
from freelancersdk.resources.projects import place_project_bid
from freelancersdk.session import Session
from freelancersdk.resources.users \
import get_self_user_id
from freelancersdk.resources.projects.projects import (
get_projects, get_project_by_id
)
from freelancersdk.resources.projects.helpers import (
create_get_projects_object, create_get_projects_project_details_object,
@riteshkawadkar
riteshkawadkar / install virtualenv ubuntu 16.04.md
Created June 1, 2022 20:14 — forked from Geoyi/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
"Microsoft.3DBuilder"
"Microsoft.BingFinance"
"Microsoft.BingNews"
"Microsoft.BingSports"
"Microsoft.BingWeather"
"Microsoft.Getstarted"
"Microsoft.MicrosoftOfficeHub"
"Microsoft.MicrosoftSolitaireCollection"
"Microsoft.Office.OneNote"