Just a dump of handy live templates I use with IntelliJ. They should also work with WebStorm.
- Go to
settings
. - Search for
live templates
. - Under the javascript section you should be able to manage your templates.
Interview Questions: | |
What does the following evaluate to: “int a=((1<<7)|(1));” |
Vagrant::Config.run do |config| | |
sshdir = "#{ENV['HOME']}/.ssh/" | |
cachedir = (ENV['CACHEDIR'] or "#{ENV['HOME']}/cache/") | |
checkout = (ENV['COOKBOOKS'] or "#{ENV['HOME']}/openstack-cookbooks") | |
ip_prefix = (ENV['IP_PREFIX'] or "192.168.27.") | |
mac_prefix = (ENV['MAC_PREFIX'] or "080027027") | |
suffix = "100" | |
ip = "#{ip_prefix}#{suffix}" | |
config.vm.box = "oneiric" | |
config.vm.box_url = "http://images.ansolabs.com/vagrant/oneiric64.box" |