This file contains 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 injector = new Squire(); | |
module("Grid", { | |
setup: function () { | |
injector.mock({ | |
"modules/utils/eventmap": { | |
subscribe: sinon.stub() | |
}, | |
"modules/grid/models/gridmodel": sinon.stub().returns(Backbone.Model), | |
"modules/grid/views/gridview": sinon.stub().returns(Backbone.View) |
This file contains 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
// Collection of filter functions | |
filters: new Backbone.Collection(), | |
// Temporary collection used to apply the filters to | |
tempCollection: new Backbone.Collection(), | |
// Filter function for sub string in property | |
stringInPropertyFilterFunction: function (prop, str) { | |
return function (model) { | |
var lowerCaseProp = model.get(prop).toLowerCase(); |
This file contains 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
createMemento: function (hash) { | |
var memento = new Memento({ | |
originator: this, | |
state: this.changedAttributes(hash) | |
}); | |
return memento; | |
}, | |
//Sets a memento object to restore state. |
This file contains 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
define(function (require, exports, module) { | |
'use strict'; | |
//Requires | |
var EventMap = require('modules/utils/eventmap'), | |
FontModel = require('modules/fonts/models/fontmodel'), | |
FontView = require('modules/fonts/views/fontview'), | |
fontModel = new FontModel(), | |
fontView; | |
This file contains 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
/*global module:false, require:false*/ | |
var path = require('path'), | |
lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; | |
var folderMount = function folderMount(connect, point) { | |
return connect.static(path.resolve(point)); | |
}; | |
module.exports = function(grunt) { |
This file contains 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
"PATHOGEN | |
execute pathogen#infect() | |
call pathogen#helptags() | |
call pathogen#runtime_append_all_bundles() | |
"RELOAD VIMRC | |
nmap <silent> <leader>sv :so $MYVIMRC<CR> | |
nmap <silent> <leader>ev :e $MYVIMRC<CR> | |
"LEADER |
This file contains 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
<?php | |
/** | |
* CSScomb | |
* | |
* Tool for sorting CSS properties in specific order | |
* | |
* @version 2.12 (build e784736-1301040046) | |
* @author Vyacheslav Oliyanchuk (miripiruni) <[email protected]> | |
* @license MIT | |
* @web http://csscomb.com/ |
This file contains 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
git log --reverse --date=short --pretty=format:'{%n "headline": "%H",%n "author": "%an <%ae>",%n "startDate": "%ad",%n "text": "%s "%n},' > ~/Desktop/json_log.txt |
This file contains 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
local last_command_status="%(?,%{$fg[green]%}✔%{$reset_color%},%{$fg[red]%}✘%{$reset_color%})" | |
PROMPT='%{$fg_bold[grey]%}%~ %(1j.%j.) | |
${last_command_status} %{$reset_color%}' | |
RPROMPT='$(git_prompt_info)' | |
ZSH_THEME_GIT_PROMPT_PREFIX="" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[cyan]%}✗%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" |
This file contains 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" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>DVTConsoleDebuggerInputTextColor</key> | |
<string>0.995968 0.995968 0.995968 1</string> | |
<key>DVTConsoleDebuggerInputTextFont</key> | |
<string>Consolas-Bold - 12.0</string> | |
<key>DVTConsoleDebuggerOutputTextColor</key> | |
<string>0.995968 0.995968 0.995968 1</string> |