I believe this was authored by someone by the name of Chris Fritz.
meteor list | grep ^[a-z] | tr -s ' ' | cut -d ' ' -f1,2 | tr -d '\*\+' | tr ':' '_' \
| while read X Y; do \
cat ~/.meteor/packages/$X/$Y/web.browser.json \
| xargs -0 node -e "X = JSON.parse(process.argv[1]); \
X.uses.forEach(function(d) { \
console.log(\"$X\", \"$Y\", d.package, d.constraint); \
})"; \
done | sort
http://stackoverflow.com/questions/39841904/ironrouter-organize-your-meteor-application-coming-up-when-using-kadira-flow
2016-10-05
2016-08-24
MacOS - Customize Terminal's prompt
Edit the file: /etc/basic
Change the value of the PS1 variable, write anything you want to have appear at terminal prompt between the single quotes. Use "\n" for line breaks.
PS1='$ '
Change the value of the PS1 variable, write anything you want to have appear at terminal prompt between the single quotes. Use "\n" for line breaks.
PS1='$ '
2016-08-18
jQuery - CSS element class attribute inequality selector
$(".class-name-here[ attribute-name-here != 'value-to-compare-against' ]")
2016-06-22
MongoDB - String search (similar to SQL's "like")
// Exact match
db.COLLECTION_NAME.find({ "textos.g" : "A phrase" });
// Case sensitive
db.COLLECTION_NAME.find({ "textos.g" : /.*god.*/ });
db.COLLECTION_NAME.find({ "textos.g" : /.*God.*/ });
// Case insensitive
db.COLLECTION_NAME.find({ "textos.g" : /.*god.*/i });
// Starts with
db.COLLECTION_NAME.find({ "textos.g" : /^g/i });
db.COLLECTION_NAME.find({ "textos.g" : "A phrase" });
// Case sensitive
db.COLLECTION_NAME.find({ "textos.g" : /.*god.*/ });
db.COLLECTION_NAME.find({ "textos.g" : /.*God.*/ });
// Case insensitive
db.COLLECTION_NAME.find({ "textos.g" : /.*god.*/i });
// Starts with
db.COLLECTION_NAME.find({ "textos.g" : /^g/i });
2016-06-16
MongoDB - How to shudown mongo?
Open terminal, and a new mongo session.
mongo
use admin
db.shutdownServer()
mongo
use admin
db.shutdownServer()
2016-03-24
Meteor - How to make server-side comments on HTML files (spacebars comments)
{{! This is a comment on your source code, that won't be displayed to the client }}
Subscribe to:
Posts (Atom)