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
Router.configure({ | |
layoutTemplate: 'layout', | |
loadingTemplate: 'loading', | |
notFoundTemplate: 'notFound', | |
waitOn: function () { | |
return [ | |
Meteor.subscribe('users'), | |
Meteor.subscribe('companiesWithUsers') | |
]; | |
} |
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
/** | |
* Adds Alt+Shift shortcut for swapping languages in Google Translate. | |
* Best used with browser JS injectors such as | |
* https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija | |
*/ | |
(function () { | |
var shiftKeyPressed = false, | |
altKeyPressed = false, | |
swap = document.querySelector('#gt-swap'); |
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
/** | |
* Adds a button to generate raw text data from daily entries on Harvest. | |
*/ | |
(function () { | |
var button = document.createElement('button'), | |
nav = document.querySelector('#nav'), | |
dayLinks = document.querySelectorAll('.js-harvest-current-view .day-view-week-nav a.js-day'), | |
area; |
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
/** | |
* Clears all cokies from bandcamp site. | |
*/ | |
(function () { | |
var cookies = document.cookie.split(';'); | |
for (var i = 0; i < cookies.length; i++) { | |
var cookie = cookies[i].trim(); | |
var eqPos = cookie.indexOf('='); | |
var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie; |
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
/** | |
* Sets emoji icons for tasks. | |
*/ | |
var emojize = function () { | |
var tasks = Array.prototype.slice.call(document.querySelectorAll('.checklist-item:not(.checklist-item-state-complete)')), | |
i = 0, | |
len = tasks.length, | |
replacers = [ | |
{ | |
from: '/^low:\s/', |
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
(() => { | |
'use strict'; | |
let copy = () => { | |
let area = document.createElement('textarea'); | |
let notificaitons = angular.element('*[ng-app]').injector().get("uiNotifications"); | |
let titles = []; | |
let dateArray = new Date().toJSON().slice(0, 10).split('-'); | |
let date = [dateArray[1], dateArray[2], dateArray[0]].join('/'); |
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
(() => { | |
'use strict'; | |
let collections = Meteor.connection._mongo_livedata_collections; | |
let names = Object.keys(collections); | |
let result = {}; | |
for (let name of names) { | |
let collection = Meteor.connection._mongo_livedata_collections[name]; | |
let keys = Object.keys(collection._docs._map); |
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
gulp.task('watch:package', function () { | |
gulp.src('../../package/source/lib/package.js') | |
.pipe(watch('../../package/source/lib/package.js')) | |
.pipe(shell('cd ../../package/source/ && jspm link github:evenfrost/package@dev -y')) | |
.pipe(gulp.dest('')); | |
}); |
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
// transform css to stylus | |
(\s{|}\n|}$|:|;) |
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
Show hidden characters
{ | |
"user": { | |
"debug": false, | |
"delay": 2, | |
"error_color": "E74C3C", | |
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme", | |
"gutter_theme_excludes": [], | |
"lint_mode": "load/save", | |
"linters": { | |
"eslint": { |
OlderNewer