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
0 info it worked if it ends with ok | |
1 verbose cli [ 'C:\\Users\\Enzo\\AppData\\Local\\atom\\app-1.12.7\\resources\\app\\apm\\bin\\node.exe', | |
1 verbose cli 'C:\\Users\\Enzo\\AppData\\Local\\atom\\app-1.12.7\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js', | |
1 verbose cli 'version', | |
1 verbose cli 'patch', | |
1 verbose cli '-m', | |
1 verbose cli 'Prepare %s release' ] | |
2 info using npm@3.10.5 | |
3 info using node@v4.4.5 | |
4 info git [ 'status', '--porcelain' ] |
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
// ==UserScript== | |
// @name Crowdin Prewrap | |
// @namespace https://gist.github.com/Spidersouris/d5fe69384b25fc9e9ae7282361e9fe17 | |
// @version 0.4 | |
// @description defines "white-space: pre-wrap" to pre on Crowdin | |
// @author Enzo Doyen | |
// @match https://crowdin.com/* | |
// @match https://valve.crowdin.com/* | |
// @grant none | |
// ==/UserScript== |
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
from flask import Flask, request, jsonify, render_template | |
import pandas as pd | |
import gc | |
app = Flask(__name__) | |
def load_dataframes(target_lang): | |
df_gl = pd.read_feather(f"data/feather/glossary_{target_lang}.ft") | |
df_exc = pd.read_feather(f"data/feather/merged_exc_{target_lang}.ft") | |
return df_gl, df_exc |