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
# BEGIN WordPress | |
RewriteRule ^index\.php$ - [L] | |
# uploaded files | |
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] | |
RewriteCond %{REQUEST_FILENAME} -f [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^ - [L] | |
RewriteRule . index.php [L] | |
# END WordPress |
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
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
model: function() { | |
return Ember.A([ | |
{ title: 'hello' }, | |
{ title: 'world' } | |
]); | |
} | |
}); |
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
State.create([ | |
{ :name => 'Alabama', :abbr => 'AL' }, | |
{ :name => 'Alaska', :abbr => 'AK' }, | |
{ :name => 'Arizona', :abbr => 'AZ' }, | |
{ :name => 'Arkansas', :abbr => 'AR' }, | |
{ :name => 'California', :abbr => 'CA' }, | |
{ :name => 'Colorado', :abbr => 'CO' }, | |
{ :name => 'Connecticut', :abbr => 'CT' }, | |
{ :name => 'Delaware', :abbr => 'DE' }, | |
{ :name => 'Florida', :abbr => 'FL' }, |
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
(function ($) { | |
$(function () { | |
$('a[href^="https?:"]:not(a[href^="https?://' + document.location.hostname + '"])').click(function () { | |
try { _gat._getTrackerByName()._trackEvent('Outbound Links', $(this).attr('href')); } catch (e) {} | |
}); | |
}); | |
}) (jQuery); |
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 Windows = { | |
method1: function () { } | |
}; | |
(function ($) { | |
module('windows-api', { | |
setup: function () { | |
sinon.spy(Windows, 'method1'); | |
}, |
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
this.$el.find('article') | |
.addClass('stage-center') | |
.prevAll('article') | |
.addClass('stage-left') | |
.end() | |
.nextAll('article') | |
.addClass('stage-right'); |
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
$('.tableClose').click(function (ev) { | |
$(this).parents('.shopPlansTable').find('.shopPlansSectionHead').toggleClass('visible'); | |
}); |
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
# usage: git sed 's/old/new/g' | |
[alias] | |
sed = !git grep --full-name -l -z '.' | xargs -0 gsed -i -e |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
jshint: { | |
options: { | |
jshintrc: ".jshintrc" | |
}, | |
files: ["Gruntfile.js", "app/**/*.js", "test/qunit/tests/**/*.js"] |
OlderNewer