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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>WEB3</title> | |
</head> | |
<body> |
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
# Docker-notes | |
# Test docker installation | |
docker ps | |
# and run a test container | |
docker run hello-world | |
# and stop it with |
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 Measurements import find | |
sums_list =[] | |
with open('input', 'r') as f: | |
l=[int(i) for i in f.readlines()] | |
for idx in range(2, len(l)): | |
sums_list.append(l[idx] + l[idx-1] + l[idx-2]) | |
print(find(sums_list)) |
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
import unittest | |
num2words = { | |
1: "ένα", | |
2: "δύο", | |
3: "τρία", | |
4: "τέσσερα", | |
5: "πέντε", | |
6: "έξι", | |
7: "επτά", |
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
<html> | |
<head> | |
<link href="https://cdn.paperindex.com/bootstrap/css/font-awesome.min.css" rel="stylesheet"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropper/2.3.4/cropper.min.css"> | |
<style> |
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
[options] | |
#allow_bold = true | |
#audible_bell = false | |
#bold_is_bright = true | |
#cell_height_scale = 1.0 | |
#cell_width_scale = 1.0 | |
#clickable_url = true | |
#dynamic_title = true | |
font = SourceCode Pro 12 | |
#fullscreen = true |
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
# i3 config file (v4) | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! | |
# Set mod key (Mod1=<Alt>, Mod4=<Super>) | |
set $mod Mod4 | |
# set default desktop layout (default is tiling) | |
# workspace_layout tabbed <stacking|tabbed> | |
# Configure border style <normal|1pixel|pixel xx|none|pixel> |
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
import random | |
die_a = [ 2, 2, 4, 4, 9, 9] | |
die_b = [ 1, 1, 6, 6, 8, 8] | |
die_c = [ 3, 3, 5, 5, 7, 7] | |
times = 100000 | |
def compare_dice(d1, d2, times): | |
d1_wins = 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
/* Example implementation of password hasher similar on Django's PasswordHasher | |
* Requires Java8 (but should be easy to port to older JREs) | |
* Currently it would work only for pbkdf2_sha256 algorithm | |
* | |
* Django code: https://github.com/django/django/blob/1.6.5/django/contrib/auth/hashers.py#L221 | |
*/ | |
import java.nio.charset.Charset; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.spec.InvalidKeySpecException; | |
import java.security.spec.KeySpec; |
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
import email | |
import sys | |
if __name__=='__main__': | |
if len(sys.argv)<2: | |
print "Please enter a file to extract attachments from" | |
sys.exit(1) | |
msg = email.message_from_file(open(sys.argv[1])) | |
for pl in msg.get_payload(): |
NewerOlder