Skip to content

Instantly share code, notes, and snippets.

Steve Ross steve-ross

Block or report user

Report or block steve-ross

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
steve-ross / .eslintrc
Created Jan 17, 2018
eslint meteor react
View .eslintrc
"env": {
"es6": true,
"node": true,
"jquery": true
"parser": "babel-eslint",
"extends": [
steve-ross / users.js
Created Dec 21, 2017
Simple Schema Example for a user
View users.js
import { Validator } from '../../imports/schemas/validators';
Schemas.UserProfile = new SimpleSchema({
name : {
type : String,
autoform: {
label: 'Full Name'
custom: Validator.twoOrMoreWords
View gist:a8edf77b0c9bcdfac6cf648de4bb3b4f
"blocks": [{
"name": "Collection callout",
"class": "index-section",
"settings": [{
"type": "collection",
"id": "collection",
"label": "Collection"
steve-ross / 26_remove_profile_email.js
Created Dec 20, 2017
migration with temporary simple schema
View 26_remove_profile_email.js
version : 26,
name : 'Remove from users',
up : function(){
// add optional so we can remove it
var profile = _.extend({
email : {
type : String,
optional: true
steve-ross / methods.js
Created Dec 6, 2017
Validated alert method for meteor
View methods.js
// 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[''].env.ROOT_URL}`;
const alert = new ValidatedMethod({
steve-ross / .direnvrc
Last active Nov 14, 2017
Some Useful helpers
View .direnvrc
log_status "Installing NVM"
curl -o- | bash
nvm install
local HAS_NODE_MODULES_BIN=$(find node_modules/.bin)
if [ -z "$HAS_NODE_MODULES_BIN" ]; then
View gist:057a8dac511d5239aaf0e338cf00882b
"blocks": [
"type": "hero",
"name": "Hero Banner",
"settings": [
"id": "bannerImage",
"type": "image_picker",
"label": "Banner Image"
steve-ross /
Last active Mar 9, 2017
Fish plugin to open the issue number for your git branch on github (if your branch is named) my-feature-branch#123 where #123 is your ticket number
function _git_branch_issue_number
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's/.*#//')
function hub-browse-issue
set -l issue_number (_git_branch_issue_number)
hub browse -- issues/$issue_number
steve-ross / javascript.json
Created Feb 22, 2017
meteor snippets for vscode
View javascript.json
"Meteor onCreated Method": {
"prefix": "mon",
"body": [
"Template.${1:name}.onCreated(function ${1:name}OnCreated() {",
"\tconst instance = this;",
"\tinstance.autorun(() => {",
steve-ross /
Created Aug 3, 2016
Mac finder showhidden files fish function
function showFiles
defaults write AppleShowAllFiles YES
killall Finder /System/Library/CoreServices/ $argv
You can’t perform that action at this time.