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
// 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
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
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
<?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
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
$('#delete-token').click(function() { | |
$this = $(this); | |
$.ajax({ | |
type: "post", | |
url: "/groups/4/account/delete_token", | |
success: function(data) { | |
$("#direct_join").fadeOut(150, function() { | |
$(this).html(''); | |
}); | |
$this.fadeOut(150); |
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
➜ ~ ls -a Dropbox/.dotfiles | |
. .. .gitconfig .tmux.conf .tmuxinator .vim .vimrc .zshrc | |
➜ ~ ln -s Dropbox/.dotfiles/.* . | |
➜ ~ ls -a | |
. .gnome .pulse | |
.. .gnome2 .pulse-cookie | |
.adobe .gnupg .rainbarf.conf | |
.bash_history .gstreamer-0.10 .rainbarf.dat | |
.bash_logout .gtk-bookmarks .ruby_inline | |
.bashrc .gvfs .rvm |
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
#!/bin/sh | |
DEVICE_ID=`xinput list | grep "Logitech" | sed 's/.*id=\([0-9]*\).*/\1/'` | |
xinput set-prop $DEVICE_ID "Device Accel Profile" 7 | |
xinput set-prop $DEVICE_ID "Device Accel Constant Deceleration" 240 | |
xinput set-prop $DEVICE_ID "Evdev Wheel Emulation Inertia" 0 |
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
■ |