#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
s = 'azcbobobegghakl' | |
l = 0 | |
count = 0 | |
x = len(s) | |
for i in s: | |
if i == "b" and l+1 < x and l+2 <x: | |
if (s[l+1] == "o" and s[l+2]=="b"): | |
count = count + 1 | |
l = l + 1 | |
print("Number of times bob occurs is: "+str(count)) |
for (var i = 1; i <= 100; i++) { | |
var f = i % 3 === 0, b = i % 5 === 0; | |
console.log(f ? b ? "FizzBuzz" : "Fizz" : b ? "Buzz" : i); | |
} |
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
#Getting Started
##Webpage:
<html>
<head>
<title>Testing with Ruby and Selenium WebDriver</title>
</head>
<body bgcolor="antiquewhite">
## The ultimate cheatsheet: all web design guidelines in one place | |
### This cheat sheet is intended to serve as a quick reference for you. | |
### It contains all the guidelines I showed you in this web design section. | |
### It is very important that you have all of the guidelines in mind at the same time when you're making your designs. | |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |