This file contains hidden or 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
const path = require('path'); | |
const fs = require('fs'); | |
//joining path of directory | |
const directoryPath = path.join(process.argv[2]); | |
//passsing directoryPath and callback function | |
fs.readdir(directoryPath, function (err, files) { | |
//handling error | |
if (err) { | |
return console.log('Unable to scan directory: ' + err); | |
} |
This file contains hidden or 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
{ | |
"Ansi 5 Color" : { | |
"Green Component" : 0.31030611240647216, | |
"Red Component" : 0.73992505656108598, | |
"Blue Component" : 0.35376425577116455 | |
}, | |
"Working Directory" : "\/Users\/steveross", | |
"Prompt Before Closing 2" : false, | |
"Selected Text Color" : { | |
"Green Component" : 0.24950546026229858, |
This file contains hidden or 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
➜ brew list | |
adns fribidi hub libomp oniguruma rename | |
augeas fzf ical-buddy libplist openexr ruby-build | |
autoconf gdbm icu4c libpng openjpeg shared-mime-info | |
autojump gettext ideviceinstaller libspiro openssl sphinx-doc | |
automake giflib ilmbase libtasn1 [email protected] sqlite | |
awscli git imagemagick libtiff p11-kit terminal-notifier | |
bfg git-flow ios-deploy libtool p7zip thefuck | |
cairo git-lfs jpeg libuninameslist pango themekit | |
certbot glib jq libunistring pcre unbound |
This file contains hidden or 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
# place in ~/.config/starship-iterm.toml | |
# Don't print a new line at the start of the prompt | |
add_newline = false | |
[directory] | |
style = "" | |
disabled = true | |
[character] | |
disabled = true |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |