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
ol>li{ | |
display:block | |
} | |
ol>li:before{ | |
content:counters(item,".") ". "; | |
counter-increment:item | |
} | |
ol{ | |
counter-reset:item | |
} |
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
urlpatterns = patterns('', | |
(r'^favicon.ico$', 'django.views.static.serve', | |
{'document_root': settings.STATIC_ROOT, 'path': "favicon.ico"}), | |
) | |
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
@media all and (max-width: 1024px) { | |
/* styles for narrow desktop browsers and iPad landscape */ | |
} | |
@media all and (max-width: 768px) { | |
/* styles for narrower desktop browsers and iPad portrait */ | |
} | |
@media all and (max-width: 480px) { | |
/* styles for iPhone/Android landscape (and really narrow browser windows) */ |
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
<script type="text/javascript"> | |
$(function(){ | |
$('.none, .up, .down').click(function() { | |
this.className = { | |
down : 'none', none: 'up', up: 'down' | |
}[this.className]; | |
return false; | |
}); | |
}) | |
</script> |
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
<script type="text/javascript"> | |
$(function(){ | |
$('.ex_sortlink2 a').click(function(){ | |
var state = this.className; | |
state = state.split('state'); | |
state = state[1]; | |
state = parseInt(state); | |
state = (state + 1) % 5; | |
this.className = "state" + state; | |
return false; |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
import os | |
import urllib | |
def rel(*x): | |
return os.path.join(os.path.abspath(os.path.dirname(__file__)), *x) | |
directory = rel() |
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
#!/usr/bin/env python | |
import os | |
import urllib | |
import markdown | |
def rel(*x): | |
return os.path.join(os.path.abspath(os.path.dirname(__file__)), *x) | |
directory = rel('md/') |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
import os | |
import shutil | |
import urllib | |
def rel(*x): | |
return os.path.join(os.path.abspath(os.path.dirname(__file__)), *x) | |
files = filter(lambda x: x.endswith('@2x.png'), os.listdir(rel())); |
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
/* | |
#ie10 will only be red in MSIE 10, | |
both in high contrast (display setting) and default mode | |
*/ | |
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { | |
#ie10 { color: red; } | |
} |
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
/* | |
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/ | |
*/ | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} |
OlderNewer