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
// core/initializers.js
var global = (function () {
return this || (0 || eval)('this');
}());
// example.js
(function () {
"use strict";
// Good.
Logger = (function () {
var dateString = function () {}
dateString.toString = function(){
datetime = new Date();
return '[' + datetime.getHours() + ':' + datetime.getMinutes() + ':' + datetime.getMilliseconds() + ']';
};
return {
debug: console.debug.bind(
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 {
@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>
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) {

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

$('#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);
➜ ~ 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
@GirlBossRush
GirlBossRush / adjust-mouse.sh
Created April 12, 2013 00:20
Adjust mouse acceleration on Chrome OS
#!/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