Login to your OpenStack UI (aka Horizon)
Navigate through the side bar to:
Project > Compute > Access & Security
Click on the Security Groups tab
Click Manage Rules
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>React Pad</title> | |
| <script src="https://unpkg.com/[email protected]/umd/react.production.min.js"></script> | |
| <script src="https://unpkg.com/[email protected]/umd/react-dom.production.min.js"></script> | |
| <script src="https://unpkg.com/@babel/[email protected]/babel.min.js"></script> | |
| </head> | |
| <body> | |
| <div id="root"/> |
Login to your OpenStack UI (aka Horizon)
Navigate through the side bar to:
Project > Compute > Access & Security
Click on the Security Groups tab
Click Manage Rules
| // Option 1 | |
| Pojo pojo = new Pojo(); | |
| pojo.setState("AWESOME"); | |
| assertEquals("AWESOME", pojo.setState()); | |
| ////////////////// or | |
| // Option 2 | |
| Pojo pojo = new Pojo(); | |
| String expected = "AWESOME"; |
| task :new, :title do |t, args| | |
| if args.to_hash.empty? | |
| puts 'usage: rake new["New Post Title"]' | |
| next | |
| end | |
| title = args.title | |
| slug = title.downcase.gsub(/\s/, '-') | |
| file_name = "_posts/" + Time.new().strftime("%Y-%m-%d") + "-#{slug}.md" |
| require 'set' | |
| class PriorityQueue | |
| def initialize | |
| @pq = SortedSet.new | |
| end | |
| def insert key, value | |
| entry = find(key) || Entry.new(key) | |
| entry.add(value) |
| require 'rubygems' | |
| require 'RMagick' | |
| include Magick | |
| if ARGV.length < 4 | |
| puts "Usage: ruby diptych.rb <new image> <left image> <right image> <width>" | |
| else | |
| left_img = Image.read(ARGV[1])[0]; | |
| right_img = Image.read(ARGV[2])[0]; |
| // http://www.mattsnider.com/css/css-string-truncation-with-ellipsis | |
| .ellipsis { | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| -o-text-overflow: ellipsis; | |
| -moz-binding: url('ellipsis.xml#ellipsis'); | |
| } |
| //from http://eriwen.com/javascript/js-stack-trace/ | |
| var currentFunction = arguments.callee.caller; | |
| while (currentFunction) { | |
| console.log(currentFunction); | |
| var fn = currentFunction.toString(); | |
| var fname = fn.substring(fn.indexOf('function') + 8, fn.indexOf('')) || 'anonymous'; | |
| //console.log(fn); | |
| currentFunction = currentFunction.caller; | |
| } |
| /* new clearfix */ | |
| .clearfix:after { | |
| visibility: hidden; | |
| display: block; | |
| font-size: 0; | |
| content: " "; | |
| clear: both; | |
| height: 0; | |
| } | |
| * html .clearfix { zoom: 1; } /* IE6 */ |