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
def get_wma(close, weights): | |
def wma(values, weights): | |
sum_of_weights = np.sum(weights) | |
weighted_average = np.sum(values * weights) / sum_of_weights | |
return weighted_average | |
return close.rolling(len(weights)).apply(lambda x: weighted_avg(x, weights)) | |
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
def is_local(): | |
""" | |
로컬 실행 여부 | |
""" | |
server = next(notebookapp.list_running_servers()) | |
return True if server['hostname'] == 'localhost' else False | |
def is_colab(): | |
""" | |
코랩 실행여부 |
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
###################################################### | |
################# CHARACTER WINDOW ################### | |
###################################################### | |
window = { | |
name = "character_window" | |
datacontext = "[GetVariableSystem]" | |
datacontext = "[CharacterWindow.GetCharacter]" | |
movable = no | |
layer = middle |
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
| initialization | activation | | |
+----------------+-------------------------------+ | |
| glorot | none, tanh, logistic, softmax | | |
| he | relu & variants | | |
| lecun | selu | |
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
l_korean: | |
OUTLINER_ARMY_CLICK_TO_SELECT:0 "" | |
OUTLINER_ARMY_CLICK_TO_PAN:0 "" | |
OUTLINER_ARMY_RIGHT_CLICK_TO_PAN:0 "" | |
HOLDING_CLICK_TOOLTIP:0 "" | |
PROVINCE_TOOLTIP_CLICK_TO_GO:1 "" | |
PROVINCE_TOOLTIP_SHIFT_TO_APPEND:0 "" | |
PROVINCE_TOOLTIP_CTRL_TO_FORCE_GATHERING:0 "" | |
CHARACTER_TOOLTIP_INSTRUCTION:0 "" | |
CHARACTER_TOOLTIP_INSTRUCTION_CODE: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
namespace = holy_order | |
scripted_effect change_holder_before_lease_out = { | |
if = { | |
limit = { NOT = { $TARGET$.holder = root } } | |
create_title_and_vassal_change = { | |
type = leased_out | |
save_scope_as = change | |
add_claim_on_loss = no | |
} |
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
grant_titles_interaction = { | |
category = interaction_category_vassal | |
common_interaction = yes | |
desc = grant_titles_interaction_desc | |
special_interaction = grant_titles_interaction | |
interface = grant_titles | |
target_type = title |
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
# Will AI for this character try to arrange matrilineal marriages? | |
# Note that the AI can still arrange patrilineal marriages based on the SPOUSE_SCORE_LINEALITY_MISMATCH_SCORE AI define | |
# root: the arranging AI character | |
# scope:secondary_actor: the character to be married | |
ai_wants_matrilineal_marriage = { | |
scope:secondary_actor = { | |
is_female = yes | |
} | |
trigger_if = { |
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
.view-line { | |
font-family: D2Coding; | |
} | |
/* Monaco Input Area */ | |
.monaco-editor-background, | |
.monaco-editor .inputarea.ime-input { | |
background-color: #000; | |
} |
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
{ | |
// 오토 포맷 | |
"jupyterlab_code_formatter:black":{ | |
"command":"jupyterlab_code_formatter:black", | |
"keys": [ | |
"Ctrl S", | |
"Ctrl S" | |
], | |
"selector": ".jp-Notebook.jp-mod-editMode" | |
}, |
NewerOlder