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
{ | |
"env": { | |
"es6": true, | |
"node": true, | |
"jquery": true | |
}, | |
"parser": "babel-eslint", | |
"extends": [ |
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 { Validator } from '../../imports/schemas/validators'; | |
Schemas.UserProfile = new SimpleSchema({ | |
name : { | |
type : String, | |
autoform: { | |
label: 'Full Name' | |
}, | |
custom: Validator.twoOrMoreWords | |
}, |
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
{ | |
"blocks": [{ | |
"name": "Collection callout", | |
"class": "index-section", | |
"settings": [{ | |
"type": "collection", | |
"id": "collection", | |
"label": "Collection" | |
}, | |
{ |
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
Migrations.add({ | |
version : 26, | |
name : 'Remove profile.email from users', | |
up : function(){ | |
// add optional profile.email so we can remove it | |
var profile = _.extend({ | |
email : { | |
type : String, | |
optional: true | |
} |
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
// location: imports/api/util/server/methods.js | |
import { Meteor } from 'meteor/meteor'; | |
import { ValidatedMethod } from 'meteor/mdg:validated-method'; | |
import { SimpleSchema } from 'meteor/aldeed:simple-schema'; | |
const env = process.env.NODE_ENV; | |
const environmentInfo = env === 'development' ? `[${process.env.HOME}]` : `${Meteor.settings['galaxy.meteor.com'].env.ROOT_URL}`; | |
const alert = new ValidatedMethod({ |
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
install_nvm(){ | |
log_status "Installing NVM" | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash | |
nvm install | |
} | |
npm_install(){ | |
local HAS_NODE_MODULES_BIN=$(find node_modules/.bin) | |
if [ -z "$HAS_NODE_MODULES_BIN" ]; then |
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
{ | |
"blocks": [ | |
{ | |
"type": "hero", | |
"name": "Hero Banner", | |
"settings": [ | |
{ | |
"id": "bannerImage", | |
"type": "image_picker", | |
"label": "Banner Image" |
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 _git_branch_issue_number | |
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's/.*#//') | |
end | |
function hub-browse-issue | |
set -l issue_number (_git_branch_issue_number) | |
hub browse -- issues/$issue_number | |
end |
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
{ | |
"Meteor onCreated Method": { | |
"prefix": "mon", | |
"body": [ | |
"Template.${1:name}.onCreated(function ${1:name}OnCreated() {", | |
"\tconst instance = this;", | |
"\t$0", | |
"\tinstance.autorun(() => {", | |
"\t});", |
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 showFiles | |
defaults write com.apple.finder AppleShowAllFiles YES | |
killall Finder /System/Library/CoreServices/Finder.app $argv | |
end |