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
#MySQL 5.7.12 | |
#please drop objects you've created at the end of the script | |
#or check for their existance before creating | |
#'\\' is a delimiter | |
#select version() as 'mysql version' | |
-- Comentarios de una línea | |
DROP TABLE IF EXISTS Fechas; |
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
let resolution = 10; | |
let grid; | |
function setup() { | |
createCanvas(800, 800); | |
grid = new Grid(width / resolution, height / resolution, resolution); | |
grid.initialize(); | |
} | |
function draw() { |
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
/** | |
* Fireworks for Processing | |
* Copyright (c) 2018 Koichi OKADA. All rights reserved; | |
* This code is distributed under the MIT license. | |
*/ | |
/** | |
* Modified by cgarciagl for Processing 3 compatibility | |
*/ | |
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 | |
public function __get($attr) { | |
if (isset(get_instance()->$attr)) { | |
return get_instance()->$attr; | |
} | |
} |
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 redirectByPost(url, parameters, inNewTab) { | |
parameters = parameters || {}; | |
inNewTab = inNewTab === undefined ? true : inNewTab; | |
var form = document.createElement("form"); | |
form.id = "reg-form"; | |
form.name = "reg-form"; | |
form.action = url; | |
form.method = "post"; | |
form.enctype = "multipart/form-data"; |
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 | |
C: TChi_square_distribution; | |
P: Single; | |
begin | |
// Creamos la instancia | |
// en este caso con 4 grados de libertad | |
C := TChi_square_distribution.create(4); | |
// Obtenemos la probabilidad acumulada al valor 5 | |
P := C.prob_between(0, 5); | |
// Probabilidad X >= 5 |