Skip to content

Instantly share code, notes, and snippets.

View ttpro1995's full-sized avatar
💭
meowingful

Thai Thien ttpro1995

💭
meowingful
View GitHub Profile
Roma Aeronautica (Steam Empire Chronicles #0.5)
Set in the world of Daniel Ottalini's Steam Empire Chronicles, Roma Aeronautica follows Rufius Tiberius Alexandros as he takes his first steps in becoming a master airship captain. Readers familiar with the Steam Empire Chronicles will love the additional background and new revelations about Alexandros, while those new to the series will discover a fascinating world of Roman Steampunk. Can Alexandros surpass the obstacles facing him, and prove to be the hero his family and friends believe him to be?
Brass Legionnaire (Steam Empire Chronicles #1)
Welcome to a world where Rome never fell. Now the leader in a worldwide industrial revolution, Rome's might has allowed it to prosper for centuries, while the steam powered warmachines of the Imperial legions keep hostile neighbors at bay. Seeking to escape the endless toil of the factory, a young man joins the army. His commander works to prove himself, away from the power and corrupting influence of his rich and might
This file has been truncated, but you can view the full file.
{"train_id": "21223385", "original_doc": {"_id": "21223385", "_source": {"body": [{"content": "<strong>Video tổng hợp trận đấu:</strong>", "text": "Video tổng hợp trận đấu:", "type": "text"}, {"content": "Chelsea cần chiến thắng trước Stoke City ở Stamford Bridge để cân bằng kỷ lục 13 chiến thắng của Arsenal ở cuối mùa 2001/02. Cuối cùng, đoàn quân của HLV Conte đã hoàn thành nhiệm vụ này khi vượt qua đối thủ với tỷ số 4-2.", "text": "Chelsea cần chiến thắng trước Stoke City ở Stamford Bridge để cân bằng kỷ lục 13 chiến thắng của Arsenal ở cuối mùa 2001/02. Cuối cùng, đoàn quân của HLV Conte đã hoàn thành nhiệm vụ này khi vượt qua đối thủ với tỷ số 4-2.", "type": "text"}, {"content": "Ở trận đấu này, Stoke City đã cố gắng hết sức. Họ đã đặt Chelsea vào thế rượt đuổi tỷ số. Nhưng rồi, với đẳng cấp, The Blues đã vượt lên ở thời điểm quyết định.", "text": "Ở trận đấu này, Stoke City đã cố gắng hết sức. Họ đã đặt Chelsea vào thế rượt đuổi tỷ số. Nhưng rồi, với đẳng cấp, The Blues đã vượt lên ở thời điểm quyết địn
This file has been truncated, but you can view the full file.
{"train_id": "21223385", "original_doc": {"_id": "21223385", "_source": {"body": [{"content": "<strong>Video tổng hợp trận đấu:</strong>", "text": "Video tổng hợp trận đấu:", "type": "text"}, {"content": "Chelsea cần chiến thắng trước Stoke City ở Stamford Bridge để cân bằng kỷ lục 13 chiến thắng của Arsenal ở cuối mùa 2001/02. Cuối cùng, đoàn quân của HLV Conte đã hoàn thành nhiệm vụ này khi vượt qua đối thủ với tỷ số 4-2.", "text": "Chelsea cần chiến thắng trước Stoke City ở Stamford Bridge để cân bằng kỷ lục 13 chiến thắng của Arsenal ở cuối mùa 2001/02. Cuối cùng, đoàn quân của HLV Conte đã hoàn thành nhiệm vụ này khi vượt qua đối thủ với tỷ số 4-2.", "type": "text"}, {"content": "Ở trận đấu này, Stoke City đã cố gắng hết sức. Họ đã đặt Chelsea vào thế rượt đuổi tỷ số. Nhưng rồi, với đẳng cấp, The Blues đã vượt lên ở thời điểm quyết định.", "text": "Ở trận đấu này, Stoke City đã cố gắng hết sức. Họ đã đặt Chelsea vào thế rượt đuổi tỷ số. Nhưng rồi, với đẳng cấp, The Blues đã vượt lên ở thời điểm quyết địn
@ttpro1995
ttpro1995 / calculate_padding.py
Created March 3, 2020 16:36
calculate_padding.py
def calculate_padding(kernel_size, dilation):
"""
https://discuss.pytorch.org/t/how-to-keep-the-shape-of-input-and-output-same-when-dilation-conv/14338
o = output
p = padding
k = kernel_size
s = stride
d = dilation
https://we.tl/t-ydp5KkOhCm
<!DOCTYPE html>
<html lang="en" ng-app="starApp">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="fragment" content="!">
<meta name="viewport" content="width=1024">
<title>188BET | Cược B&#243;ng Đ&#225; World Cup 2018</title>
<meta name="robots" content="" />
<meta name="keywords" content="world-cup, *" />
@ttpro1995
ttpro1995 / file1.txt
Created June 12, 2018 03:04
Created via API
Demo
@ttpro1995
ttpro1995 / file1.txt
Created June 12, 2018 03:00
Created via API
Demo
import re
import dateparser
# use re and dateparser to normalize date in sentence
# :author: Thai Thien
def p1():
regex = r"\d+/\d+/\d+"
token = " today is 14/2/2012 which is meowing full day. Tomorrow is 15/2/2012, which is an meowingfull day again"
@ttpro1995
ttpro1995 / gist:b192d6918427270887e39ef819ea3576
Created August 14, 2017 15:59
English month of the year (short form)
Jan/Feb/Mar/Apr/May/Jun/Jul/Aug/Sep/Oct