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

Section “Monitor” Identifier “Monitor0” VendorName “Unknown” ModelName “DELL E2210” HorizSync 30.0 - 83.0 VertRefresh 56.0 - 75.0 Option “DPMS”

if (!choice.correct && choice.content.alt.text) {
          altText.text(choice.content.alt.text).show();
        } else if (choice.correct && typeof choice.content != 'undefined' && typeof choice.content.text != 'undefined' && null != choice.content.text && choice.content.text.length > 0) {
          altText.text(choice.content.text).show();
        } else {
          altText.hide();
        }
if (!choice.correct) {
if (choice.content.alt.text) {
@GirlBossRush
GirlBossRush / private.xml
Created December 24, 2013 03:09
KeyRemap4Mac
<?xml version="1.0"?>
<root>
<item>
<name>Command + Delete removes word.</name>
<identifier>private.pc_style_delete_word</identifier>
<autogen>
__KeyToKey__ KeyCode::DELETE, ModifierFlag::COMMAND_L | ModifierFlag::NONE,
KeyCode::DELETE, ModifierFlag::OPTION_L
</autogen>
</item>
Logger = {
dispatch: function dispatch () {
if (arguments.length > 1) {
var args = Array.prototype.slice.call(arguments, 0),
pipe = args.shift();
args[0] = '[' + args[0] + ']';
args.splice(0, 0, ('[' + new Date() + ']'));
console[pipe].apply(console, args);
} else {
Logger = (function () {
var dateString = function () {}
dateString.toString = function(){
datetime = new Date();
return '[' + datetime.getHours() + ':' + datetime.getMinutes() + ':' + datetime.getMilliseconds() + ']';
};
return {
debug: console.debug.bind(
// core/initializers.js
var global = (function () {
return this || (0 || eval)('this');
}());
// example.js
(function () {
"use strict";
// Good.
# 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
// 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 = [
function foo() {
if (false) {
var x = 1;
}
return;
var y = 1;
}
function foo() {
var x, y;
if (false) {
var items = MemoryBank.items,
removedItems;
removedItems = _.countBy(items, function (item) {
if (item.memories.completed) {
return "completed";
} else if (item.memories.skipped) {
return "skipped";
}
});