Section “Monitor” Identifier “Monitor0” VendorName “Unknown” ModelName “DELL E2210” HorizSync 30.0 - 83.0 VertRefresh 56.0 - 75.0 Option “DPMS”
This file contains hidden or 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
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) { |
This file contains hidden or 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
<?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> |
This file contains hidden or 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
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 { |
This file contains hidden or 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
Logger = (function () { | |
var dateString = function () {} | |
dateString.toString = function(){ | |
datetime = new Date(); | |
return '[' + datetime.getHours() + ':' + datetime.getMinutes() + ':' + datetime.getMilliseconds() + ']'; | |
}; | |
return { | |
debug: console.debug.bind( |
This file contains hidden or 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
// core/initializers.js | |
var global = (function () { | |
return this || (0 || eval)('this'); | |
}()); | |
// example.js | |
(function () { | |
"use strict"; | |
// Good. |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
// 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 = [ |
This file contains hidden or 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
function foo() { | |
if (false) { | |
var x = 1; | |
} | |
return; | |
var y = 1; | |
} | |
function foo() { | |
var x, y; | |
if (false) { |
This file contains hidden or 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
var items = MemoryBank.items, | |
removedItems; | |
removedItems = _.countBy(items, function (item) { | |
if (item.memories.completed) { | |
return "completed"; | |
} else if (item.memories.skipped) { | |
return "skipped"; | |
} | |
}); |