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
highlight ExtraWhitespace ctermbg=red guibg=red | |
match ExtraWhitespace /\s\+$/ | |
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ | |
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/ | |
autocmd InsertLeave * match ExtraWhitespace /\s\+$/ | |
autocmd BufWinLeave * call clearmatches() |
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
#!/bin/sh | |
SSHV="SSH_CLIENT SSH_TTY SSH_AUTH_SOCK SSH_CONNECTION DISPLAY" | |
for x in ${SSHV} ; do | |
(eval echo $x=\$$x) | sed 's/=/="/ | |
s/$/"/ | |
s/^/export /' | |
done 1>$HOME/.bash_helpers/fixssh |
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
return { | |
'hosts': list(set(chain.from_iterable( | |
[app.hosts for (name,app) in self.apps.iteritems()] | |
))) | |
} |
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
DERF FERLER_QERLERFER_HDFS_PERTH(PERTH): | |
"""ERF PERTH ERSNT ERN ``HDFS://`` ERL, TERN ERT ERNT ERN.""" | |
ERF PERTH.STERTSWERTH('HDFS://') ER PERTH.STERTSWERTH('S3N:/'): | |
RERTERN PERTH | |
ERLERF PERTH.STERTSWERTH('/'): | |
RERTERN 'HDFS://' + PERTH | |
ERLS: | |
RERTERN 'HDFS:///ERSER/%S/%S' % (GERTPERS.GERTERSER(), PERTH) |
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
$ git push origin foo | |
Counting objects: 16, done. | |
Delta compression using up to 24 threads. | |
Compressing objects: 100% (6/6), done. | |
Writing objects: 100% (6/6), 728 bytes, done. | |
Total 6 (delta 5), reused 0 (delta 0) | |
Auto packing the repository for optimum performance. | |
fatal: protocol error: bad line length character: Remo | |
error: error in sideband demultiplexer |
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
ExpectedMethodCallsError: Verify: Expected methods never called: | |
0. V | |
1. e | |
2. r | |
3. i | |
4. f | |
5. y | |
6. : | |
7. | |
8. E |
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
with mock.patch.object(tests.util, 'datetime', mock.Mock(wraps=datetime)) as mock_datetime: | |
mock_datetime.utcnow.side_effect = mock_now |
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
# in some module | |
class Foo(object): | |
pass | |
# somewhere else | |
from some_module import Foo |
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
The --set-upstream flag is deprecated and will be removed. Consider using --track or --set-upstream-to | |
Branch origin/master set up to track local branch iphone-contacts. | |
If you wanted to make 'iphone-contacts' track 'origin/master', do this: | |
git branch -d origin/master | |
git branch --set-upstream-to origin/master |
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
In [2]: re.compile(u'[\U0001f300-\U0001f5ff]') | |
--------------------------------------------------------------------------- | |
error Traceback (most recent call last) | |
<ipython-input-2-1a8eff581d46> in <module>() | |
----> 1 re.compile(u'[\U0001f300-\U0001f5ff]') | |
/Users/sam/bamboo-env/lib/python2.7/re.pyc in compile(pattern, flags) | |
188 def compile(pattern, flags=0): | |
189 "Compile a regular expression pattern, returning a pattern object." | |
--> 190 return _compile(pattern, flags) |
OlderNewer