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
div { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
height: 100vh; | |
margin: 0 auto | |
} | |
div { | |
display: grid; |
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
@ECHO OFF | |
for %%f in (D:\VideoTools\VideoSubFinder\Release_x64\TXTImages\*.jpeg) do ( | |
tesseract %%f D:\VideoTools\VideoSubFinder\Release_x64\TXTResults\%%~nf -l spa | |
) |
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
DELETE FROM `ps_orders` WHERE `id_order` IN (0); | |
DELETE FROM `ps_order_carrier` WHERE `id_order` NOT IN (SELECT `id_order` FROM `ps_orders` WHERE `id_order` IS NOT NULL); | |
DELETE FROM `ps_order_cart_rule` WHERE `id_order` NOT IN (SELECT `id_order` FROM `ps_orders` WHERE `id_order` IS NOT NULL); | |
DELETE FROM `ps_order_detail` WHERE `id_order` NOT IN (SELECT `id_order` FROM `ps_orders` WHERE `id_order` IS NOT NULL); | |
DELETE FROM `ps_order_detail_tax` WHERE `id_order_detail` NOT IN (SELECT `id_order_detail` FROM `ps_order_detail` WHERE `id_order_detail` IS NOT NULL); | |
DELETE FROM `ps_order_history` WHERE `id_order` NOT IN (SELECT `id_order` FROM `ps_orders` WHERE `id_order` IS NOT NULL); | |
DELETE FROM `ps_order_invoice` WHERE `id_order` NOT IN (SELECT `id_order` FROM `ps_orders` WHERE `id_order` IS NOT NULL); |
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
var kue = require('kue'), | |
jobs = kue.createQueue(), | |
util = require('util'), | |
noop = function() {}; | |
jobs.CLEANUP_MAX_FAILED_TIME = 30 * 24 * 60 * 60 * 1000; // 30 days | |
jobs.CLEANUP_MAX_ACTIVE_TIME = 1 * 24 * 60 * 60 * 1000; // 1 day | |
jobs.CLEANUP_MAX_COMPLETE_TIME = 5 * 24 * 60 * 60 * 1000; // 5 days | |
jobs.CLEANUP_INTERVAL = 5 * 60 * 1000; // 5 minutes |
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
module.exports = { | |
adapter:'exampleDB', | |
//tableName:'locale', | |
attributes: { | |
text: { | |
type: 'string' | |
}, | |
// locale config |
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
// Include this code on your config/models.js | |
updateOrCreate: function(criteria, values){ | |
var self = this; | |
if (!values) values = criteria.where ? criteria.where : criteria; | |
return this.findOne(criteria).then(function (result){ | |
if (result) { | |
return self.update(criteria, values); | |
} else { |