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
// ================WeaponWrapper.class ================= | |
// class version 52.0 (52) | |
// access flags 0x31 | |
public final class WeaponWrapper implements Weapon { | |
// access flags 0x2 | |
private LWeapon; weapon | |
@Lorg/jetbrains/annotations/NotNull;() // invisible |
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
# -*- coding: utf-8 -*- | |
''' | |
This is the demo code for my article about context manager at the link below. | |
https://duongnt.com/context-manager | |
''' | |
class HtmlTagV2: | |
INDENT = 2 | |
depth = 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
# -*- coding: utf-8 -*- | |
''' | |
This is the demo code for my article about context manager at the link below. | |
https://duongnt.com/context-manager | |
''' | |
class HtmlTag: | |
INDENT = 2 | |
depth = 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
# -*- coding: utf-8 -*- | |
''' | |
This is the demo code for my article about adversarial example at the link below. | |
https://duongnt.com/adversarial-example | |
Please install these packages before running this script. | |
- pip install tensorflow | |
- pip install keras | |
- pip install Pillow | |
''' |
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
# -*- coding: utf-8 -*- | |
''' | |
This is the demo code for my article about KerasTuner at the link below. | |
https://duongnt.com/kerastuner | |
Please install these packages before running this script. | |
- pip install tensorflow | |
- pip install keras | |
- pip install keras-tuner | |
''' |
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
# -*- coding: utf-8 -*- | |
''' | |
This is the demo code for my article about HDF5 in Python at the link below. | |
https://duongnt.com/hdf5-with-h5py | |
Please install these packages before running this script. | |
- pip install h5py | |
- pip install imutils | |
- pip install keras |
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 argparse | |
import os | |
BMP_HEADER_LENGTH = 54 | |
BMP_HEADER = bytes.fromhex('424d36000c000000000036000000280000000002000000020000010018000000000000000c0074120000741200000000000000000000') | |
first_encrypted_path = 'first_encrypted_image.bmp' | |
second_encrypted_path = 'second_encrypted_image.bmp' | |
mix_encrypted_path = 'mix_encrypted_image.bmp' |
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
# -*- coding: utf-8 -*- | |
''' | |
pip install keras >= 2.3.1 | |
pip install tensorflow >= 1.14.0 | |
''' | |
import os | |
import tensorflow as tf |