Skip to content

Instantly share code, notes, and snippets.

View snide's full-sized avatar
🐢
Steady, constant work always wins.

Dave Snider snide

🐢
Steady, constant work always wins.
View GitHub Profile
$('#js_project_1').click(function() {
if ($('#js_table_1').is(':visible')) {
$('#js_table_1').fadeOut('slow')
} else {
$('#js_table_1').fadeIn('slow')
}
});
class NewSignupsBySite(SiteMetricsPanel):
filters = {'action': 'signup'}
dimension = 'site'
verbose_name = 'New Signups by Site'
time_based_aggregations = ((cube.Count(), 'Over Time'), )
summary_aggregations = ((cube.Count(), 'Total'), )
comparison_aggregations = (
('video_type_name', cube.Count(), 'By Plan Type'),
)
site.register(CentralAuthCube, NewSignupsBySite)
function gg() {
cd ~/cbsi
find . \
-mindepth 1 -maxdepth 2 \
-type d -name .git \
| while read git_dir; do
dir=`dirname $git_dir`
echo $dir:
cd $dir
git $*
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
"*.pyc",
"*.pyo",
{# COMSCORE #}
<script>
var _comscore = _comscore || [];
_comscore.push({ c1: "2", c2: "3005086" });
(function() {
var s = document.createElement("script"), el = document.getElementsByTagName("script")[0]; s.async = true;
s.src = (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js";
el.parentNode.insertBefore(s, el);
})();
</script>
<script>
var _comscore = _comscore || [];
_comscore.push({ c1: "2", c2: "3005086" });
(function() {
var s = document.createElement("script"), el = document.getElementsByTagName("script")[0]; s.async = true;
s.src = (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js";
el.parentNode.insertBefore(s, el);
})();
</script>
<noscript>
export PATH=/Users/snide/bin:${PATH}:/usr/local/sbin
function parse_git_branch {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PYTHONDONTWRITEBYTECODE=1
export VIRTUALENV_USE_DISTRIBUTE=1
alias shell="python manage.py shell"
Form layout....
<ol>
<li>
<label>title</label>
<div>
<input>
<p class="help-block"></p>
</div>
</li>
{# LIST VIEW OF ALL shows #}
{# You can find a full list of variables to use on this page in your CMS. #}
{% extends "templates/partials/base.html" %}
{% block content %}
<div class="show-list">
<div class="container">
{% set shows = get('shows') %}
.video-wrap
max-width: 640px
margin: auto
+clearfix
.video
position: relative
padding-bottom: 56.25%
height: 0
.video-wrap iframe
position: absolute