foo bar
baz.
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
from six import string_types | |
from django.utils.encoding import force_text | |
from django.urls.resolvers import LocaleRegexProvider, RegexURLResolver | |
class _BetterRegexProperty(object): | |
def __get__(self, obj, type=None): | |
if obj is None: | |
return self |
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
>>> async def x(): | |
... pass | |
... | |
>>> coro = x() | |
>>> x.__name__ | |
'x' | |
>>> x.__name__ = 'bar' | |
>>> coro | |
<coroutine object x at 0x102214938> |
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 click | |
@click.group() | |
def cli(): | |
pass | |
@cli.group() | |
def github(): | |
pass | |
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
addprx = "!f() { b=`git symbolic-ref -q --short HEAD` && \ | |
echo \"Making branch for pull request #$1 [pr/$1]\" && \ | |
git fetch origin pull/$1/head:pr/$1 && \ | |
echo \"Rebasing pr/$1 onto $b...\" && \ | |
git fetch -q -f origin pull/$1/merge:refs/PR_MERGE_HEAD && \ | |
git rebase -q --onto $b PR_MERGE_HEAD^ pr/$1 && \ | |
git checkout -q $b && echo && \ | |
git diff --stat $b..pr/$1 && echo && \ | |
git log --oneline $b..pr/$1; \ | |
git update-ref -d refs/PR_MERGE_HEAD; \ |
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
/// wraps the returned error in `Some(...)`. | |
macro_rules! try { | |
($expr:expr) => { | |
match $crate::IntoCarrier::into_carrier($expr) { | |
$crate::Carrier::Continue(x) => x, | |
$crate::Carrier::Return(x) => { return x; } | |
} | |
} | |
} |
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
Raven.config('DSN_HERE', { | |
dataCallback: function(data) { | |
if (data.exception) { | |
data.exception.values[0].stacktrace.frames.forEach(function(frame) { | |
frame.filename = frame.filename.split('?')[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
## DIRECT BINDING CONSTRUCTION ########################### | |
user system total real | |
exc:normal 1.920000 0.050000 1.970000 ( 2.020442) | |
exc:capture 20.890000 0.260000 21.150000 ( 21.544473) | |
pass:normal 1.250000 0.000000 1.250000 ( 1.270937) | |
pass:capture 15.030000 0.140000 15.170000 ( 15.372432) | |
## DEFERRED BINDING CONSTRUCTION ######################### | |
user system total real | |
exc:normal 1.830000 0.040000 1.870000 ( 1.947270) |
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
Dear Sir, | |
DNSUnlocker allows our user to watch geo restricted content from the | |
anywhere in the world. | |
For example you can what Netflix U.S. from England, as well as BBC iPlayer | |
from the U.S. . | |
The software is distributed for free and is sponsored by advertisement. | |
You can uninstall the software from the add/remove software panel of | |
windows which should reset the DNSs to its default. |
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
$ dig google-analytics.com @82.163.143.172 | |
; <<>> DiG 9.8.3-P1 <<>> google-analytics.com @82.163.143.172 | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23476 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 | |
;; QUESTION SECTION: | |
;google-analytics.com. IN A |