This file contains hidden or 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 sys | |
| import math | |
| import sgf | |
| import matplotlib.pyplot as plt | |
| from matplotlib.patches import Circle | |
| from matplotlib.gridspec import GridSpec | |
| from matplotlib.backends.backend_pdf import PdfPages | |
| # Requires numpy and sgf packages |
This file contains hidden or 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 netCDF4 as nc | |
| import sys | |
| def analyze_netcdf_resolution(filepath): | |
| """ | |
| Abre un archivo NetCDF e imprime la resolución espacial de cada variable. | |
| """ | |
| try: | |
| dataset = nc.Dataset(filepath, "r") |
This file contains hidden or 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
| #!/bin/bash | |
| # Script para convertir archivos CBR (Comic Book RAR) en CBZ (Comic Book ZIP) | |
| # Uso: ./cbr2cbz.sh archivo.cbr [archivo.cbr ...] | |
| if [ $# -eq 0 ]; then | |
| echo "Error: No se han proporcionado archivos para convertir." | |
| echo "Uso: $0 archivo.cbr [archivo.cbr ...]" | |
| exit 1 | |
| fi |
This file contains hidden or 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
| # control alt p: Preferences: Open Keyboard Shortcuts (JSON) | |
| // Coloque sus atajos de teclado en este archivo para sobreescribir los valores predeterminados | |
| [ | |
| { | |
| "key": "f9", | |
| "command": "-editor.debug.action.toggleBreakpoint", | |
| "when": "debuggersAvailable && disassemblyViewFocus || debuggersAvailable && editorTextFocus" | |
| }, | |
| { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| # Busca caracteres fuera del ascii | |
| find -name '*.py' -print0 |xargs -0 grep -P '[^\x00-\x7f]' > /tmp/non-ascii.txt |
This file contains hidden or 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
| { | |
| "python.pythonPath": "env/bin/python", | |
| "pythonTestExplorer.testFramework": "unittest", | |
| "python.testing.unittestArgs": [ | |
| "-v", | |
| "-s", | |
| "./tests", | |
| "-p", | |
| "test_*.py" | |
| ], |
This file contains hidden or 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
| [General] | |
| language = en | |
| sgffolder = /tmp | |
| rsgffolder = | |
| pngfolder = | |
| livefolder = live_analysis | |
| stonesound = | |
| [Analysis] | |
| maxvariations = 26 |
This file contains hidden or 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 datetime import datetime | |
| import matplotlib.pyplot as plt | |
| fn = "Nivel_Cares_1.csv" | |
| X, Y = [], [] | |
| with open(fn) as f: | |
| f.readline() # leer y descartar cabecero | |
| for line in f: | |
| y, x = line.strip().replace(",",".").split(";") |
NewerOlder