composer update nothing
or
composer update --lock
function hasInterfaceFooBar(obj) { | |
var methods = ['foo','bar','baz']; | |
return methods.every(function(methodName) { | |
return typeof obj[methodName] === 'function'; | |
}); | |
} | |
//more generic | |
function implements(obj, interface) { |
This are my cheat sheets that I have compiled over the years. Tired of searching Google for the same things, I started adding the information here. As time went on, this list has grown. I use this almost everday and this Gist is the first bookmark on my list for quick and easy access.
I recommend that you compile your own list of cheat sheets as typing out the commands has been super helpful in allowing me to retain the information longer.
-- stop all vagrant boxes | |
vboxmanage list runningvms | sed -E 's/.*\{(.*)\}/\1/' | xargs -L1 -I {} VBoxManage controlvm {} savestate |
Prefix commits | |
PRJ-P-G04 | |
- Two / Three letter shortname of project | |
dash | |
- Type of commmit | |
- A : api breaking (first number of your semversion) | |
- F : feature (second number of your semversion) |
Personally, I'd go with run control, because ESR says so.
http://www.catb.org/~esr/writings/taoup/html/ch10s03.html
I hereby claim:
To claim this, I am signing this object:
var _id = mongoose.mongo.BSONPure.ObjectID.fromHexString("4eb6e7e7e9b7f4194e000001"); |