Skip to content

Instantly share code, notes, and snippets.

View dmitryTsatsarin's full-sized avatar

Dmitry Tsatsarin dmitryTsatsarin

View GitHub Profile
@dmitryTsatsarin
dmitryTsatsarin / gist:d683678202788d8474be
Created June 28, 2014 20:30
Google chrome notification api example
// Dmitry Tsatsarin
/* Attention!!!!
Required fields:
iconUrl,
type,
title,
message
iconUrl MUST BE(!!!!!) valid url or empty string
#!/bin/bash
################
# Description:
# This script will take screenshot of your desktop
# or only active window ( running with -u param ),
# copy it to /Dropbox/Public/share/ with uniq name
# and save path to clipboard
#################
# Requirements:
# Dropbox
@dmitryTsatsarin
dmitryTsatsarin / gist:5707024
Created June 4, 2013 15:51
override_settings
from django.test import TestCase
from django.conf import settings
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
with self.settings(NAME='Tim'):
трям
class A(object):
a=1
class B(object):
b=2
C=B
-Computer-
Processor : 2x AMD Athlon(tm) II X2 220 Processor
Memory : 4049MB (3192MB used)
Operating System : Ubuntu 12.04.1 LTS
User Name : dmitri (Dmitry)
Date/Time : Вт. 18 дек. 2012 17:00:49
-Display-
Resolution : 1280x1024 pixels
OpenGL Renderer : Unknown
X11 Vendor : The X.Org Foundation