I hereby claim:
- I am ryankirkman on github.
- I am ryankirkman (https://keybase.io/ryankirkman) on keybase.
- I have a public key whose fingerprint is 8741 9A15 5966 3AA5 4D94 7E20 C57E 59F3 7106 4090
To claim this, I am signing this object:
| """ | |
| Originaly code was taken from http://djangosnippets.org/snippets/290/ | |
| But I was made some improvements like: | |
| - print URL from what queries was | |
| - don't show queries from static URLs (MEDIA_URL and STATIC_URL, also for /favicon.ico). | |
| - If DEBUG is False tell to django to not use this middleware | |
| - Remove guessing of terminal width (This breaks the rendered SQL) | |
| """ | |
| from django.core.exceptions import MiddlewareNotUsed | |
| from django.conf import settings |
| SELECT * | |
| FROM credit_cards_history | |
| WHERE credit_card_id = 1 | |
| ORDER BY version DESC |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| *.pyc |
| #!/usr/bin/env node | |
| // Reads JSON from stdin and writes equivalent | |
| // nicely-formatted JSON to stdout. | |
| var input = ''; | |
| process.stdin.resume(); | |
| process.stdin.setEncoding('utf8'); |
| server { | |
| root /var/www/example.com/static; | |
| server_name example.com; | |
| access_log /var/log/nginx/example.com.access.log; | |
| error_log /var/log/nginx/example.com.error.log; | |
| try_files /maintenance.html @proxy; | |
| location @proxy { | |
| proxy_pass http://127.0.0.1:10001; |
| # Please see: http://travisjeffery.com/b/2012/02/search-a-git-repo-like-a-ninja/ | |
| alias gg='git grep -E --break --heading --line-number' | |
| # Case insensitive search | |
| alias ggi='gg -i' |
I hereby claim:
To claim this, I am signing this object:
| var query = from gameScore in ParseObject.GetQuery("GameScore") | |
| orderby gameScore.Get<int>("score") descending | |
| select gameScore; | |
| var rank = await query.CountAsync(); |
| jasmine.JSReporter.prototype.reportRunnerResults(jasmine.getEnv().currentRunner_); |
| jQuery.fn.extend({ | |
| closestPrev: function(selector) { | |
| if(!selector) return this.prev(); | |
| return this.is(selector) | |
| ? this | |
| : this.prev(selector) || this.prevUntil(selector).prev(); | |
| } | |
| }); |