Skip to content

Instantly share code, notes, and snippets.

View mayuroks's full-sized avatar

Mayur Rokade mayuroks

View GitHub Profile
class VideoList(ListView):
model = Video
paginate_by = 15
template_name = "vid_index.html"
context_object_name = "vid_list"
def get_context_data(self, **kwargs):
context = super(VideoDetail, self).get_context_data(**kwargs)
context['big_video'] = Video.objects.filter(id=1)
# Iterate over vid_list in templates for
@mayuroks
mayuroks / hello.py
Created June 14, 2013 03:20
python 3 Hello World
from requests import get
import sys
def do_sth:
print('Hello World !')
@mayuroks
mayuroks / dabblet.css
Created September 8, 2012 19:28
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
@charset "UTF-8";
/* CSS Document */
.span2{
height: 30px;
width: 150px;
}
@mayuroks
mayuroks / dabblet.css
Created September 8, 2012 19:27
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
@charset "UTF-8";
/* CSS Document */
.span2{
height: 30px;
width: 150px;
}
@mayuroks
mayuroks / dabblet.css
Created September 8, 2012 19:22
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
@charset "UTF-8";
/* CSS Document */
.span2{
height: 30px;
width: 150px;
}