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
<!DOCTYPE | |
<html> | |
<body> | |
<label>Curs valutar</label> | |
<input id="exchange-rate" type="text" disabled /> | |
<button id="update-button">Update</button> | |
<script> | |
var URL = "http://www.infovalutar.ro/bnr/azi/eur"; | |
var updateButtonEl = document.getElementById("update-button"); |
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
#!/bin/bash | |
FONT_PATH=$1 | |
# Check if the font was provided as an argument. | |
if [ -z $FONT_PATH ] | |
then | |
echo "Usage: $0 <font>" | |
echo "Where <font> is the .ejf font to be extracted." | |
exit | |
fi |
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 | |
import datetime | |
import time | |
class OpenWeatherMap: | |
def __init__(self, city, api_key): | |
self.city = city | |
self.api_key = api_key | |
def obtain_data(self): |
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
# BEGIN Redirection to HTTPS | |
<IfModule mod_rewrite.c> | |
RewriteCond %{HTTPS} off | |
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteCond .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
</IfModule> | |
# END Redirection to HTTPS |