This file contains 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
explain SELECT SQL_CALC_FOUND_ROWS wp_posts.ID | |
FROM wp_posts | |
WHERE wp_posts.post_type = 'post' | |
AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') | |
ORDER BY wp_posts.post_date DESC | |
LIMIT 0, 15 | |
+------+-------------+----------+-------+---------------------------+------------------+---------+------+--------+------------------------------------------+ | |
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | |
This file contains 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
""" | |
Exports Issues from a specified repository to a CSV file | |
Uses basic authentication (Github username + password) to retrieve Issues | |
from a repository that username has access to. Supports Github API v3. | |
""" | |
import csv | |
import requests | |
This file contains 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 Notice: Undefined index: HTTP_HOST in /Users/santagada/projects/mapasculturais/src/protected/vendor/opauth/opauth/lib/Opauth/Opauth.php on line 48 | |
PHP Stack trace: | |
PHP 1. {main}() /Users/santagada/projects/mapasculturais/src/protected/tools/doctrine:0 | |
PHP 2. include() /Users/santagada/projects/mapasculturais/src/protected/tools/doctrine:4 | |
PHP 3. require() /Users/santagada/projects/mapasculturais/src/protected/tools/doctrine.php:31 | |
PHP 4. require() /Users/santagada/projects/mapasculturais/src/protected/tools/cli-config.php:2 | |
PHP 5. MapasCulturais\App->init() /Users/santagada/projects/mapasculturais/src/protected/application/bootstrap.php:17 | |
PHP 6. MapasCulturais\AuthProvider->__construct() /Users/santagada/projects/mapasculturais/src/protected/application/lib/MapasCulturais/App.php:304 | |
PHP 7. MapasCulturais\AuthProviders\OpauthOpenId->_init() /Users/santagada/projects/mapasculturais/src/protected/application/lib/MapasCulturais/AuthProvider.php:17 | |
PHP 8. Opauth->__construct() /Users/santaga |
This file contains 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
| GET /2014/wp-content/themes/viradacultural/app/angular-google-maps.js HTTP/1.1 | 404 | http://viradacultural.prefeitura.sp.gov.br/2014/programacao/ | |
| | |
| GET /2014/wp-content/themes/viradacultural/app/underscore-min.js HTTP/1.1 | 404 | http://viradacultural.prefeitura.sp.gov.br/2014/programacao/ | |
| | |
| GET /apple-touch-icon-precomposed.png HTTP/1.1 |
This file contains 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
app.directive('checkbox', function(){ | |
return { | |
restrict: 'E', | |
require: 'ngModel', | |
scope: { | |
options: '=', | |
checked: '=ngModel', | |
label: '=label' | |
}, | |
/*jshint multistr: true */ |
This file contains 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/env python | |
# _*_ encoding: latin-1 | |
import random | |
#tipo de verbos | |
TD='TD' | |
TI='TI' | |
TDI='TDI' | |
NEG = 'NEG' |
This file contains 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
{ | |
// JSHint Default Configuration File (as on JSHint website) | |
// See http://jshint.com/docs/ for more details | |
"maxerr" : 50, // {int} Maximum error before stopping | |
// Enforcing | |
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) | |
"camelcase" : false, // true: Identifiers must be in camelCase | |
"curly" : true, // true: Require {} for every new block or scope |
This file contains 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
# -*- coding: utf-8 -*- | |
def sorteio(): | |
""" | |
Cria a lista com os resultados oficiais publicados pela Caixa. | |
""" | |
sorteados = [] | |
while len(sorteados) < 6: | |
numero = int(input("Digite o número: ")) | |
if numero > 0 and numero <= 60: |
This file contains 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
Traceback (most recent call last): | |
File "verificador.py", line 74, in <module> | |
main() | |
File "verificador.py", line 68, in main | |
pool.join() | |
File "/home/santagada/.virtualenvs/x/local/lib/python2.7/site-packages/gevent/pool.py", line 103, in join | |
self._empty_event.wait(timeout=timeout) | |
File "/home/santagada/.virtualenvs/x/local/lib/python2.7/site-packages/gevent/event.py", line 74, in wait | |
result = get_hub().switch() | |
File "/home/santagada/.virtualenvs/x/local/lib/python2.7/site-packages/gevent/hub.py", line 164, in switch |
This file contains 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
def gerar_linha(self): | |
linha = u'%s|%s|\r\n' % (self.reg, self.ind_mov) | |
return linha + super(RegistroF001, self).gerar_linha() |