Skip to content

Instantly share code, notes, and snippets.

View coagulant's full-sized avatar

Ilya Baryshev coagulant

View GitHub Profile
_______________________________________________________________________________________ ReporterTest.test_reporter _______________________________________________________________________________________
self = <tests.test_api.ReporterTest testMethod=test_reporter>
def test_reporter(self):
sh.coverage('run', 'runtests.py')
> assert self.cover.get_coverage() == [{
'source': '# coding: utf-8\n\n\ndef hello():\n print(\'world\')\n\n\nclass Foo(object):\n """ Bar """\n\n\ndef baz():\n print(\'this is not tested\')',
'name': 'project.py',
'coverage': [None, None, None, 1, 1, None, None, 1, None, None, None, 1, 0]}, {
git bisect start
# bad: [d92b08536d873c0966e8192e64d8e8bd9de79ebe] [1.7.x] Bump version number for 1.7 release.
git bisect bad d92b08536d873c0966e8192e64d8e8bd9de79ebe
# good: [7c08f4c6351f7e53a01ff800d8a61f19ca961b29] Bump everything for 1.3.
git bisect good 7c08f4c6351f7e53a01ff800d8a61f19ca961b29
# bad: [63c52dcbcdd47cb1a47662846dfe4e1812d2444c] Fixed #20008 -- Removed trailing slash in Wikipedia link
git bisect bad 63c52dcbcdd47cb1a47662846dfe4e1812d2444c
# bad: [f29234167ad0193f35360023c65212c39cf87d1b] Merge pull request #104 from samuraisam/17138-html5-remove-summary
git bisect bad f29234167ad0193f35360023c65212c39cf87d1b
# good: [a82488bf4b57c1bc917f8ed79eac7a99d5e26bff] Fixed #16966 -- Stopped CachedStaticFilesStorage from choking on querystrings and path fragments.
(tmp-b091c70f6774b4f9)➜ django git:(master) ✗ git bisect start
(tmp-b091c70f6774b4f9)➜ django git:(master) ✗ git bisect good 1.3
(tmp-b091c70f6774b4f9)➜ django git:(master) ✗ git bisect bad 1.4
Bisecting: 844 revisions left to test after this (roughly 10 steps)
[b1c3174cfaf2e850da86c7649f64bf62f60046dc] Removed unused code from admindocs app now that it supports reversing URLs.
(tmp-b091c70f6774b4f9)➜ django git:(b1c3174) ✗ git bisect run python /Users/prophet/work/forks/test_mirror/testmirror/manage.py test testapp
running python /Users/prophet/work/forks/test_mirror/testmirror/manage.py test testapp
Creating test database for alias 'default'...
.
----------------------------------------------------------------------

Keybase proof

I hereby claim:

  • I am coagulant on github.
  • I am coagulant (https://keybase.io/coagulant) on keybase.
  • I have a public key whose fingerprint is FB49 D279 F794 0918 4D53 9783 1931 001D 2484 7EC7

To claim this, I am signing this object:

@coagulant
coagulant / redmine_plugins
Created April 25, 2014 11:06
List of cool Redmine plugins in use in Futurecolors
Due Date Reminder plugin
Issue Hot Buttons Plugin plugin
Parent Ticket Fields plugin
Redmine Select2 plugin
Redmine Auto Watch plugin
@coagulant
coagulant / FakeQuerySet.py
Last active December 21, 2015 08:19 — forked from zmcghee/FakeQuerySet.py
items should not be mutable kwarg
from django.db.models.query import EmptyQuerySet
class FakeQuerySet(EmptyQuerySet):
"""Turn a list into a Django QuerySet... kind of."""
def __init__(self, model=None, query=None, using=None, items=None):
super(FakeQuerySet, self).__init__(model, query, using)
self._result_cache = items or []
def count(self):
return len(self)
@coagulant
coagulant / gist:6185330
Created August 8, 2013 14:56
Gitlab styles improved (wiki)
/**
* Wiki looks improvements by Artem Golikoff
**/
.file_holder .file_content.wiki {
max-width: 800px;
font-size: 15px;
font-family: Helvetica, Arial, sans-serif;
line-height: 20px;
}
.file_content.wiki ul li {
(sentry)sentry@gitlab:~$ pip install gevent
Downloading/unpacking gevent
Downloading gevent-0.13.8.tar.gz (300kB): 300kB downloaded
Running setup.py egg_info for package gevent
Downloading/unpacking greenlet (from gevent)
Downloading greenlet-0.4.1.zip (75kB): 75kB downloaded
Running setup.py egg_info for package greenlet
Installing collected packages: gevent, greenlet
@coagulant
coagulant / hello.md
Created August 18, 2012 15:17
Gist.io - клёвый сервис

Проверяем markdown

Можно ли написать в unicode?

Можно!

@coagulant
coagulant / Django Pony
Created March 25, 2011 07:47
Magical pony
.,,.
,;;*;;;;,
.-'``;-');;.
/' .-. /*;;
.' \d \;; .;;;,
/ o ` \; ,__. ,;*;;;*;,
\__, _.__,' \_.-') __)--.;;;;;*;;;;,
`""`;;;\ /-')_) __) `\' ';;;;;;
;*;;; -') `)_) |\ | ;;;;*;
;;;;| `---` O | | ;;*;;;