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
# Deny all attempts to access hidden files/folders such as .git, .htaccess, .htpasswd, .DS_Store (Mac), etc... | |
location ~ /\. { | |
deny all; | |
access_log off; | |
log_not_found off; | |
} | |
# Deny yaml, twig, markdown, ini file access | |
location ~* /.+\.(markdown|md|twig|yaml|yml|ini)$ { | |
deny all; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>API Docs with Swagger UI</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" type="text/css" href="https://unpkg.com/swagger-ui-dist@3/swagger-ui.css"> | |
</head> | |
<body> |
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
{ | |
"editor.rulers": [80,120], | |
"workbench.colorCustomizations": { | |
"editorRuler.foreground": "#ff4081" | |
} | |
} |
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
#--------------------------------------------------------------------------------------------------# | |
# ENVIRONMENT SETTING # | |
# It can be anything, but "development", "staging" and "production" are supported out of the box. # | |
# Do not use "development" on production and viceversa, because it has effect on debug settings. # | |
#--------------------------------------------------------------------------------------------------# | |
WORDPRESS_ENV=development | |
#--------------------------------------------------------------------------------------------------# | |
# DEBUG # | |
# If you set WORDPRESS_ENV, default debug values are used based on that. # |
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
"use strict"; | |
/* | |
Example Hyper Config | |
@link https://hyper.is#cfg for all currently supported options. | |
*/ | |
module.exports = { | |
config: { | |
updateChannel: 'stable', | |
fontSize: 17, | |
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', |
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
<?php | |
declare(strict_types = 1); | |
/** | |
* ConfusionMatrix | |
* | |
* @author Gonzalo Chacaltana Buleje <[email protected]> | |
* @version v1.0.0 | |
* @access public | |
*/ |
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
# Función que devuelve wordcloud de un contenido de texto | |
# @param Corpus corpus Example: Corpus(VectorSource(publication)) from Corpus Package | |
wordcloud_corpus <- function(corpus) { | |
# Matriz de términos (Term-Document-Matrix) | |
tdm = TermDocumentMatrix(corpus, control = list(removePunctuation = TRUE, removeNumbers = TRUE, tolower = TRUE)) | |
matrix_tdm = as.matrix(tdm) | |
# Obtenemos las palabras frecuentes de mayor a menor | |
words_freqs = sort(rowSums(matrix_tdm), decreasing=TRUE) | |
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
theme_bluewhite <- function (base_size = 11, base_family = "") { | |
theme_bw() %+replace% | |
theme( | |
panel.grid.major = element_line(color = "white"), | |
panel.background = element_rect(fill = "lightblue"), | |
panel.border = element_rect(color = "lightblue", fill = NA), | |
axis.line = element_line(color = "lightblue"), | |
axis.ticks = element_line(color = "lightblue"), | |
axis.text = element_text(color = "steelblue") | |
) |
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
var canvas = document.getElementById("myChart"); | |
var ctx = canvas.getContext("2d"); | |
var horizonalLinePlugin = { | |
afterDraw: function(chartInstance) { | |
var yScale = chartInstance.scales["y-axis-0"]; | |
var canvas = chartInstance.chart; | |
var ctx = canvas.ctx; | |
var index; | |
var line; |
NewerOlder