Skip to content

Instantly share code, notes, and snippets.

View meandavejustice's full-sized avatar

Dave Justice meandavejustice

View GitHub Profile
@meandavejustice
meandavejustice / gist:3908542
Created October 17, 2012 21:56
only displaying "legend"
<script id="legend" type="text/x-template">
<ul>
<li class='panel-item legend-icon-my'>
Add to my events</li>
<li class='panel-item legend-icon-odds'>
odds of winning</li>
<li class='panel-item legend-flag-hot'>
Hot</li>
<li class='panel-item legend-flag-pick-staff'>
{% if not user.is_authenticated %}
<li>
<a href="{% url 'feedback' %}">
Send Us Feedback
</a>
</li>
{% endif %}
David-Justices-MacBook-Pro:node-v0.8.12 meandave$ ./configure && make
{ 'target_defaults': { 'cflags': [],
'default_configuration': 'Release',
'defines': [],
'include_dirs': [],
'libraries': []},
'variables': { 'clang': 1,
'host_arch': 'x64',
'node_install_npm': 'true',
'node_install_waf': 'true',
@meandavejustice
meandavejustice / n00bshit.js
Created December 6, 2012 19:39
.blur is catching .js-search-clear before it gets to $document
$document.on('click', '.js-search-close', function(e) {
e.preventDefault();
$('#navigation-global-search, #datepicker').val(''); // clear form value
Backbone.history.navigate(lastFragmentBeforeSearch || '', {trigger: true});
});
$document.on('click', 'js-search-clear', function(e) {
e.preventDefault();
$('#navigation-global-search').val(''); //clear form value
});
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDlQW/h9MkXwMGGJSiiZPDhuOFT+TH0m99okYIHouO39AWneuQcGg0kchO+qj3FpdDlYwRud3hRhUKH8y8riXPsFjnXs3E337ztyzbaZotx1s9pZaiBhGwUxRknVgQENvmqoNMjfKD7OIl7RqtswP/ZUwOy1Hvr6G4CxlmeCz85ESW5zOpFCZND135RIgcnFhLlyyotutLiyuHQhZdFjvOcbvImsaFoDKD4EnF3m/T+fcecvw8zwr9kJfEFUWyZ4MrH6BfAtbX9T2HT5FebUotVEdstGwleRtTYpNXjWJakXrQEmXqbzTpMfLkjk4gwpk3lpyE5qo5BQS2tZtz+jeaX [email protected]
npm WARN package.json Please pick one as the 'repository' field
@meandavejustice
meandavejustice / gist:7091347
Last active December 26, 2015 04:09
my current .emacs
(load-theme 'kvn-spacey t)
(require 'package)
;; Add the original Emacs Lisp Package Archive
(add-to-list 'package-archives
'("elpa" . "http://tromey.com/elpa/"))
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/"))
@meandavejustice
meandavejustice / placeholder-mixin.less
Created October 23, 2013 22:40
a mixin for styling html placeholders
// placeholder styles
.placeholder(@color:inherit, @background: inherit) {
::-webkit-input-placeholder {
color: @color;
background: @background;
}
:-moz-placeholder { /* Firefox 18- */
color: @color;
background: @background;
// Bohemian Rhapsody - queen
if (realLife || fantasy) {
for (i = 0; i < landslide + 1; i++) {
if (!reality) {
break;
}
landslide = i + 1;
}
}
// currently sorting my collection with this comparator.
// It sets up a relationship so that a Parent Item should be before its sub-items(you can think of these as sub tasks)
// 'parent' attribute is just the 'pk' of the parent item.
// This is working fantastically but I need to sort at a higher level above this descending from an attribute called
// 'created_at'.
// the `else` refers to items that are either parents, or items that have no relationship to any others.
comparator: function(item) {
if (item.isSubItem()) {
return [item.get('parent'), item.get('pk')];