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 gzip | |
import logging | |
from PIL import Image | |
class ATFFormat: | |
#JXRC_FMT_24bppRGB | |
ATFRGB888 = 0 | |
#JXRC_FMT_32bppBGRA | |
ATFRGBA8888 = 1 | |
#LZMA compressed DXT1 data + JXRC_FMT_16bppBGR565 + LZMA compressed PVRTC top data + LZMA compressed PVRTC bottom data + JXRC_FMT_16bppBGR555 + LZMA compressed ETC1 top data + LZMA compressed ETC1 bottom data + JXRC_FMT_16bppBGR555 + LZMA compressed ETC2Rgb top data + LZMA compressed ETC2Rgb bottom data + JXRC_FMT_24bppBGR |
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
package utils | |
import java.lang.Integer.max | |
/* | |
| Symbol | Price | Change | | |
|--------|---------|--------| | |
| ABC | 20.85 | 1.626| | |
| DEF | 78.95 | 0.099| | |
| GHI | 23.45 | 0.192| |
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 time | |
from functools import reduce | |
# Affinities = list[red, green, blue, yellow, purple] | |
class Constellation: | |
__slots__ = ('name', 'stars', 'requirement', 'bonus') | |
def __init__(self, name:str, stars:int, requirement, bonus): | |
self.name:str = name | |
self.stars:int = stars |
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
class zcl_string_services definition create private final. | |
public section. | |
class-methods split_by_size | |
importing | |
text type clike | |
size type i default 50 | |
limit type i default 4 " 0 - no limit | |
returning value(rt_string) type string_table. | |
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
report z_table_replacer. | |
parameters p_table type tabname matchcode object dd_tabl obligatory. | |
parameters p_field type fieldname obligatory. | |
types: begin of ts_change, | |
from type string, | |
to type string, | |
end of ts_change. |
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
class-methods xmldoc_to_string | |
importing io_ixml_doc type ref to if_ixml_document | |
returning value(rv_string) type string. | |
method xmldoc_to_string. | |
data ixml type ref to if_ixml. | |
data factory type ref to if_ixml_stream_factory. | |
data ostream type ref to if_ixml_ostream. | |
data renderer type ref to if_ixml_renderer. |
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
function Z_PROG_CHECK. | |
*"---------------------------------------------------------------------- | |
*"*"Локальный интерфейс: | |
*" IMPORTING | |
*" VALUE(TRDIR) TYPE TRDIR | |
*" EXPORTING | |
*" VALUE(SYNTAX_ERROR) TYPE FLAG | |
*"---------------------------------------------------------------------- | |
data mess type string. |
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
report zrs. | |
class lcl_dynpro_controller definition deferred. | |
class lcl_app definition create private final. | |
public section. | |
class-methods new returning value(ro_instance) type ref to lcl_app. | |
methods run. | |
private section. | |
endclass. |
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
report determine_variable_name. | |
class lcl_rtti definition final. | |
public section. | |
types: begin of ts_keyval, | |
key type string, | |
val type string, | |
end of ts_keyval. | |
types tt_keyval type standard table of ts_keyval with non-unique default key. |
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
class lcl_debug definition create private final. | |
public section. | |
class-methods show_any_table importing it_any_table type any table. | |
endclass. | |
class lcl_debug implementation. | |
method show_any_table. | |
" -- transform type | |
field-symbols <lt> type standard table. | |
data tref type ref to data. |
NewerOlder