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
;; RESUME: | |
;; Xdebug configuration file in order to use together with Netbeans. | |
;; | |
;; OS: ubuntu 14:04 | |
;; FILENAME: /etc/php5/apache2/conf.d/20-xdebug.ini | |
zend_extension=xdebug.so | |
xdebug.default_enable=1 | |
xdebug.remote_enable=1 |
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
SET foreign_key_checks = 0; |
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
$queries = \DB::getQueryLog(); | |
\Log::info(end($queries)) |
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
packages : | |
- jshint # requires the nodejs package with the same name. | |
- SideBarEnhancement | |
- TrailingSpaces | |
- DocBlockr | |
- SublimeLinter | |
- SublimeLinter-jshint | |
- Emmet |
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
/* | |
* Widget 1.0 | |
* Author: Wender Lima | |
*/ | |
!function(e,l,id,s,r,d){ | |
var c=null, | |
v=null, | |
jQ=null, | |
h=e.getElementsByTagName('head')[0], | |
w=e.getElementById(id); |
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
#!/usr/bin/php | |
<?php | |
/** | |
* .git/hooks/pre-commit | |
* | |
* This pre-commit hooks will check for PHP error (lint), and make sure the code | |
* is PSR compliant. | |
* | |
* Dependecy: PHP-CS-Fixer (https://github.com/fabpot/PHP-CS-Fixer) | |
* |
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
## Tested with python Python 2.7.12 | |
# Instructions | |
# | |
# 1. Put the fasta file in the same directory of this file with the name | |
# blast.fasta. | |
# 2. Run the script with the origin file name and the destination file name | |
# | |
# Example: python clean_blast.py file1.fasta my_file.fasta |
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
## _reindexNonAnchorCategories | |
## This method is not the problem | |
## | |
## Results | |
## Range self::RANGE_CATEGORY_STEP = 500 | |
## Take the entities which id is between 500*n 500*(n+1) | |
## Benchmark 13687 rows affected in 3s 942ms X 32 queries ~ 96s | |
INSERT INTO `catalog_category_product_index_tmp` (`category_id`, `product_id`, `position`, `is_parent`, `store_id`, `visibility`) | |
SELECT | |
`cc`.`entity_id` AS `category_id`, |
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
## _reindexNonAnchorCategories | |
## This method is not the problem | |
## | |
## Results | |
## Range self::RANGE_CATEGORY_STEP = 500 | |
## Take the entities which id is between 500*n 500*(n+1) | |
## Benchmark completed 4m 21s 77ms X 32 queries = 2h 19m 12s = 2h | |
INSERT IGNORE INTO `catalog_category_product_index_tmp` (`category_id`, `product_id`, `position`, `is_parent`, `store_id`, `visibility`) | |
SELECT | |
`cc`.`entity_id` AS `category_id`, |
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
SELECT | |
2, | |
`cg`.`customer_group_id`, | |
`p`.`entity_id`, | |
189796, | |
1484006400, | |
1514764799, | |
'by_percent', | |
50, | |
0, |
OlderNewer