This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// miscellaneous | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"typescript.updateImportsOnFileMove.enabled": "always", | |
"diffEditor.ignoreTrimWhitespace": false, | |
// window | |
"window.title": "🦙⚡🫡 – ${activeEditorShort}${separator}${rootName} – 🫡⚡🦙", | |
"window.clickThroughInactive": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scrapy | |
from ..items import AmazonproductreviewscraperItem | |
class Amazonreviewscraper(scrapy.Spider): | |
name = "amazonproductreview" | |
counter = 1 | |
# Domain names to scrape | |
allowed_domains = ['amazon.in'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import * | |
from tkinter.messagebox import showinfo | |
from bs4 import BeautifulSoup | |
import requests | |
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3'} | |
def action(): | |
### Code For Receiving Query | |
query=textF.get() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: fb-notification-service # Name of the service | |
useDotenv: true # We want to get the env variables from our .env | |
provider: | |
name: aws # provider we want to use | |
runtime: python3.8 # runtime we want to use // python3.9 does not work currently | |
memorySize: 128 # memory size, 128 is the lowest, scales performance | |
region: eu-central-1 | |
stage: ${opt:stage, 'production'} # is used in the name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function autoDelete() { | |
console.log('Started autoDelete run.'); | |
var delayDays = 2; | |
var maxDate = new Date(); | |
maxDate.setDate(maxDate.getDate()-delayDays); | |
var label = GmailApp.getUserLabelByName("delete me"); | |
var threads = label.getThreads(); | |
if(threads.length > 0){ | |
console.log('Found ' + threads.length + ' emails marked for deletion.'); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sympy import symbols, Eq, solve | |
def beat_bookies(odds1, odds2, total_stake): | |
x, y = symbols('x y') | |
eq1 = Eq(x + y - total_stake, 0) # total_stake = x + y | |
eq2 = Eq((odds2*y) - odds1*x, 0) # odds1*x = odds2*y | |
stakes = solve((eq1,eq2), (x, y)) | |
total_investment = stakes[x] + stakes[y] | |
profit1 = odds1*stakes[x] - total_stake | |
profit2 = odds2*stakes[y] - total_stake | |
benefit1 = f'{profit1 / total_investment * 100:.2f}%' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def find_surebet(odds1, odds2): | |
sum_odds = (1/odds1) + (1/odds2) | |
if sum_odds<1: | |
message = 'Surebet Found!' | |
else: | |
message = 'Keep scraping' | |
return message |
NewerOlder