This file contains 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
<section class="login-cliente"> | |
<div class="container"> | |
<div class="row spaced-out"> | |
<div class="col-md-6"> | |
<h2>Login</h2> | |
<p>Aqui pode ver e alterar os seus dados pessoais, consultar uma listagem com os descontos e promoções de que já usufruiu e aceder aos seus vouchers.</p> | |
<label>Email</label> | |
<input type="email"> | |
This file contains 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
# Declare the set | |
my_set = {1, 2, 3, 4, 4} | |
print(my_set) | |
# Will output {1, 2, 3, 4} | |
# FUN NOTE: strings can also be added to sets in Python like {"Banana", "apple"}, | |
# keep in mind it will still forbid repetition |
This file contains 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
# Define Set | |
my_set = {1, 2, 3} | |
(1 in my_set) # 1 ∈ {1, 2, 3} also means {1, 2, 3} ∋ 1 |
This file contains 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
# Define set | |
my_set = {2, 5, 6} | |
(1 not in my_set) # 1 ∉ {2, 5, 6} also means {2, 5, 6} ∌ 1 |
This file contains 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
# In case you are wondering about why the range goes to 101, that is because, | |
# the last argument is where it stops, meaning it will only reach the previous iteration (100). | |
# For more information check: https://www.geeksforgeeks.org/python-range-function/ | |
our_set = {x for x in range(1, 101)} | |
print(our_set) | |
# or the easiest approach for newcomers. | |
our_set = set() | |
for x in range(1, 101): |
This file contains 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
# Name of your job | |
job "my_job" { | |
# Which region are you running your job | |
datacenters = ["dc1"] | |
/* | |
Job type can be "service", "batch" or "system". | |
A "service" job is made for long lived services that should never go down, | |
Service jobs are made to run until explicitly stopped by the operator. | |
A "batch" job is made for short lived operations which can last |
This file contains 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
const Apify = require('apify'); | |
const fs = require('fs'); | |
Apify.main(async () => { | |
// Create a requestQueue | |
const requestQueue = await Apify.openRequestQueue(); | |
// Add the first requests to the queue | |
await requestQueue.addRequest({ url: 'https://www.coolblue.nl/sitemap/nl_en/products_1.xml' }); | |
await requestQueue.addRequest({ url: 'https://www.coolblue.nl/sitemap/nl_en/products_2.xml' }); | |
This file contains 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
## Configuration file for a typical Tor user | |
## Last updated 28 February 2019 for Tor 0.3.5.1-alpha. | |
## (may or may not work for much older or much newer versions of Tor.) | |
## | |
## Lines that begin with "## " try to explain what's going on. Lines | |
## that begin with just "#" are disabled commands: you can enable them | |
## by removing the "#" symbol. | |
## | |
## See 'man tor', or https://www.torproject.org/docs/tor-manual.html, | |
## for more options you can use in this file. |
This file contains 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
const Apify = require('apify'); | |
const fs = require('fs'); | |
const b2CloudStorage = require('b2-cloud-storage'); | |
async function backblazeUpload () { | |
return new Promise(resolve => { | |
const b2 = new b2CloudStorage({ | |
auth: { | |
accountId: '<account_id>', | |
applicationKey: '<application_key>' |
This file contains 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
# Filename: main.tf | |
# Configure GCP project | |
provider "google" { | |
project = "terraform-cr" | |
} | |
# Deploy image to Cloud Run | |
resource "google_cloud_run_service" "comicbook-crawler" { | |
name = "comicbook-crawler" | |
location = "europe-west2" | |
template { |