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 os | |
def split(filehandler, delimiter=',', row_limit=10000, | |
output_name_template='output_%s.csv', output_path='.', keep_headers=True): | |
""" | |
Splits a CSV file into multiple pieces. | |
A quick bastardization of the Python CSV library. | |
Arguments: |
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 | |
user_info.user_id, | |
count(IF(right_question_by_category.quiz_id = 18 AND right_question_by_category.question_category_id = 60, | |
(right_question_by_category.question_id), 0)) teste, | |
IF(total_quiz_question_by_category.quiz_id = 18 AND total_quiz_question_by_category.question_category_id = 60, | |
total_quiz_question_by_category.questions_count, 0) first_quiz_category_obrigatoria | |
FROM mdl_report_user_info AS user_info | |
CROSS JOIN mdl_quiz quiz |
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 | |
/** | |
* Renderizador para alinhar HTML do formato do curso ao esperado | |
* pelo tema. | |
* | |
* @package theme | |
* @subpackage funenseg | |
* @author Epic <contato@epicbrasil.com> | |
*/ |