Skip to content

Instantly share code, notes, and snippets.

View thieu1995's full-sized avatar
🎯
Focusing

Nguyen Van Thieu thieu1995

🎯
Focusing
View GitHub Profile
@thieu1995
thieu1995 / my_libraries.bib
Created May 20, 2022 11:03
Citation for my works
@software{thieu_nguyen_2020_3839812,
author = {Thieu Nguyen},
title = {A framework of the state-of-the-art metaheuristics algorithms in python: mealpy},
month = may,
year = 2020,
publisher = {Zenodo},
doi = {10.5281/zenodo.3711948},
url = {https://doi.org/10.5281/zenodo.3711948}
}
@thieu1995
thieu1995 / tutorials.md
Last active April 19, 2022 10:56
Commands for publishing python package
from functools import total_ordering
@total_ordering
class WSN:
def __init__(self, mec_id, cpu_require, priority_level, generate_time, age):
self.mec_id = mec_id
self.cpu_require = cpu_require
self.priority_level = priority_level
@thieu1995
thieu1995 / gist:dc0223abcdba856893fec415ef5d6638
Created March 3, 2022 15:24 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@thieu1995
thieu1995 / cec_2013.py
Last active September 9, 2020 04:15
How to call and run CEC 2013 benchmark functions from opfunu library.
## Upgrade the library first
## pip install opfunu --upgrade
## Current version: 0.7.1
import numpy as np
from opfunu.cec.cec2013.unconstraint import Model as MD1
from opfunu.cec.cec2013.unconstraint2 import Model as MD2
problem_size = 100
solution = np.ones(problem_size)
@thieu1995
thieu1995 / libraries_citations.bib
Last active July 23, 2020 14:57
List of my libraries citations
@software{thieu_nguyen_2020_3839812,
author = {Thieu Nguyen},
title = {A framework of the state-of-the-art metaheuristics algorithms in python: mealpy},
month = may,
year = 2020,
publisher = {Zenodo},
doi = {10.5281/zenodo.3711948},
url = {https://doi.org/10.5281/zenodo.3711948}
}
@incollection{yang2010new,
author = "Xin-She Yang",
booktitle = "Nature inspired cooperative strategies for optimization (NICSO 2010)",
pages = "65–74",
publisher = "Springer",
title = "A new metaheuristic bat-inspired algorithm",
year = "2010",
url={https://doi.org/10.1007/978-3-642-12538-6_6}
}
@thieu1995
thieu1995 / reverse_order_content_and_sidebar.html
Created July 1, 2020 12:54
This block code will make your main content of blog reverse the order with the right sidebar (Jekyll, Bootstrap 4.5, Responsive)
<div class="container-fluid">
<div id="blog_wrapper">
<div class="row">
<div class="col-12 col-lg-9 order-lg-first order-md-last order-sm-last order-last">
{{ content }}
</div>
<div class="col-12 col-lg-3 order-lg-last order-md-first order-sm-first order-first">
{%- include right_sidebar.html -%}
</div>
</div>
@thieu1995
thieu1995 / top_categories_jekyll.html
Created July 1, 2020 09:05
Determine the top contributors in your Jekyll website.
<ul>
{% for category in site.categories %}
{% assign category_name = category[0] %}
<li>
<a href="/blog/categories/{{ category_name | slugify }}/">
{{ category_name | capitalize | replace: "-", " " }}:
<span class="badge badge-light">{{site.categories[category_name].size}} articles
</span>
</a>
</li>
@article{xie2021predicting,
title={Predicting roof displacement of roadways in underground coal mines using adaptive neuro-fuzzy inference system optimized by various physics-based optimization algorithms},
author={Xie, Chengyu and Nguyen, Hoang and Bui, Xuan-Nam and Nguyen, Van-Thieu and Zhou, Jian},
journal={Journal of Rock Mechanics and Geotechnical Engineering},
year={2021},
publisher={Elsevier},
url={https://doi.org/10.1016/j.jrmge.2021.07.005},
doi={10.1016/j.jrmge.2021.07.005},
}