Skip to content

Instantly share code, notes, and snippets.

View GirlBossRush's full-sized avatar
🌎
Building open source geo-spatial software

Teffen Ellis GirlBossRush

🌎
Building open source geo-spatial software
View GitHub Profile
{
// JSHint Default Configuration File (as on JSHint website)
// See http://jshint.com/docs/ for more details
"maxerr" : 50, // {int} Maximum error before stopping
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : false, // true: Identifiers must be in camelCase
"curly" : true, // true: Require {} for every new block or scope
"file_exclude_patterns":
[
".tags",
".git",
".gitmodules",
".tags_sorted_by_file",
".gemtags",
"tmp/*",
"log/*",
".bundle/*",
<svg class="plot" width="900" height="315">
<g class="nodes">
<g data-id="194647" data-skipped="" class="node hidden"><circle class="node-circle"></circle><path class="active" d="m0,-5l0,10m -5,-5l10,0" pointer-events="none"></path></g>
<g data-id="298417" data-skipped="" class="node hidden"><circle class="node-circle"></circle><path class="active" d="m0,-5l0,10m -5,-5l10,0" pointer-events="none"></path></g>
<g data-id="2971678" class="node" transform="translate(397,283)"><circle class="node-circle" r="6"></circle><path class="active" d="m0,-5l0,10m -5,-5l10,0" pointer-events="none"></path></g>
<g data-id="438695" class="node" transform="translate(397,283)"><circle class="node-circle" r="6"></circle><path class="active" d="m0,-5l0,10m -5,-5l10,0" pointer-events="none"></path></g>
<g data-id="235428" class="node" transform="translate(397,283)"><circle class="node-circle" r="6"></circle><path class="active" d="m0,-5l0,10m -5,-5l10,0" pointer-events="none"></path></g>
<g data-id="297167
var removedItems = { completed: 0, skipped: 0 };
_.each(MemoryBank.items, function (item) {
if (item.memories.completed) {
removedItems.completed++;
delete MemoryBank.items[item.id];
}
if (item.memories.skipped) {
removedItems.skipped++;
var items = MemoryBank.items,
removedItems;
removedItems = _.countBy(items, function (item) {
if (item.memories.completed) {
return "completed";
} else if (item.memories.skipped) {
return "skipped";
}
});
// Remove completed and skipped items.
// REFACTOR: Consider doing this in the visual.
// Different visuals may want to use these items.
var removedCompletedItems = 0,
removedSkippedItems = 0;
_.values(MemoryBank.items).forEach(function (item) {
if (item.memories.completed) {
delete MemoryBank.items[item.id];
removedCompletedItems += 1;
var items = MemoryBank.items,
removedItems;
removedItems = _.countBy(items, function (item) {
if (item.memories.completed) {
return "completed";
} else if (item.memories.skipped) {
return "skipped";
}
});
function foo() {
if (false) {
var x = 1;
}
return;
var y = 1;
}
function foo() {
var x, y;
if (false) {
// General purpose logger.
// * Adds timestamps.
// * Retains line numbers.
(function loggerInitializer() {
"use strict";
// Stub common console methods when they are missing.
var method,
noop = function noop() {},
methods = [
# Look good
set -g default-terminal "screen-256color"
# Default session name
SESSION='Pixel'
# Act like GNU screen
# unbind C-b
# set -g prefix C-a