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
from flask import Flask | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
return '<h1>Welcome to Flask!</h1>' | |
if __name__ == '__main__': | |
app.run() |
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
#include <stdio.h> | |
int main(){ | |
printf("Simple C Program\n"); | |
return 0; | |
} |
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
"builders": [ | |
{ | |
"type": "virtualbox-iso", | |
"boot_command": [ | |
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos610/ks.cfg<enter><wait>", | |
"<wait10><wait10><wait10><tab>interface=enp0s8<enter><wait>" | |
], | |
"boot_wait": "10s", | |
"disk_size": 40960, | |
"guest_os_type": "RedHat_64", |
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
CREATE TABLE countries (id SERIAL PRIMARY KEY, country_code varchar(2), name varchar(100), ios3 varchar(3), numcode int, withdrawn varchar(1)); | |
INSERT INTO countries (id, country_code, name, ios3, numcode, withdrawn) | |
VALUES | |
(1, 'AF', 'Afghanistan', 'AFG', 4, 'f'), | |
(2, 'AL', 'Albania', 'ALB', 8, 'f'), | |
(3, 'DZ', 'Algeria', 'DZA', 12, 'f'), | |
(4, 'AS', 'American Samoa', 'ASM', 16, 'f'), | |
(5, 'AD', 'Andorra', 'AND', 20, 'f'), | |
(6, 'AO', 'Angola', 'AGO', 24, 'f'), |
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
chrome_options = webdriver.ChromeOptions() | |
chrome_options.add_argument("--use-fake-device-for-media-stream") | |
chrome_options.add_argument("--use-file-for-fake-video-capture=./salma_hayek.y4m") | |
chrome_options.add_experimental_option("prefs", { | |
"profile.default_content_setting_values.media_stream_camera": 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
from splinter import Browser | |
url = "https://saisyam.com" | |
browser = Browser() | |
browser.visit(url) | |
assert browser.title == "Saisyam" | |
browser.quit() |
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
root@71ed18bbe448:/# psql -U postgres | |
psql (12.2 (Debian 12.2-2.pgdg100+1)) | |
Type "help" for help. | |
postgres=# |
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
<div class="ui_column is-2 memberInfoColumn"> | |
<div class="prw_rup prw_reviews_member_info_resp" data-prwidget-name="reviews_member_info_resp" data-prwidget-init="handlers"> | |
<div class="member_info"> | |
<div id="UID_17C6B346E55C632F36B9F164F28E2211-SRC_750231642" class="memberOverlayLink clickable" onclick="widgetEvCall('handlers.initMemberOverlay', event, this);" data-anchorwidth="90"> | |
<div class="avatar profile_17C6B346E55C632F36B9F164F28E2211"> | |
<div class="avatarWrapper"> | |
<a> | |
<div class="prw_rup prw_common_basic_image avatarImage" data-prwidget-name="common_basic_image" data-prwidget-init=""> | |
<div class="ui_avatar resp"> <img src="https://media-cdn.tripadvisor.com/media/photo-l/1a/f6/7c/01/default-avatar-2020-5.jpg" class="basicImg" data-mediaid="452361217"></div> | |
</div> |
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
<div class="ui_column is-2 memberInfoColumn"> | |
<div class="prw_rup prw_reviews_member_info_resp" data-prwidget-name="reviews_member_info_resp" data-prwidget-init="handlers"> | |
<div class="member_info"> | |
<div id="UID_17C6B346E55C632F36B9F164F28E2211-SRC_750231642" class="memberOverlayLink clickable" onclick="widgetEvCall('handlers.initMemberOverlay', event, this);" data-anchorwidth="90"> | |
<div class="avatar profile_17C6B346E55C632F36B9F164F28E2211"> | |
<div class="avatarWrapper"> | |
<a> | |
<div class="prw_rup prw_common_basic_image avatarImage" data-prwidget-name="common_basic_image" data-prwidget-init=""> | |
<div class="ui_avatar resp"> <img src="https://media-cdn.tripadvisor.com/media/photo-l/1a/f6/7c/01/default-avatar-2020-5.jpg" class="basicImg" data-mediaid="452361217"></div> | |
</div> |
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
<div class="ui_avatar resp"> | |
<img src="https://media-cdn.tripadvisor.com/media/photo-l/1a/f6/7c/01/default-avatar-2020-5.jpg" class="basicImg" data-mediaid="452361217"> | |
</div> | |
<div class="info_text pointer_cursor" onclick="widgetEvCall('handlers.usernameClick', event, this);"> | |
<div>bornaz2018</div> | |
</div> |
OlderNewer