This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>My First Web Page</title> | |
<link rel=”stylesheet” href=”styles.css”> | |
</head> | |
<body> | |
<p id="introduction">Writing <span class="html">HTML</span> is awesome!</p> | |
<p id="about-css">CSS makes it even more awesome.</p> | |
<p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>My First Web Page</title> | |
</head> | |
<body> | |
<p></p> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person | |
attr_accessor :name | |
def initialize(name) | |
@name = name | |
end | |
end | |
p = Person.new('L. Ron') | |
puts p.name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
test_regex () { | |
REGEX="$1"; | |
TEST_STRINGS="$2"; | |
[ -n "$3" ] && [ "$3" = "expect_no_match" ] && SHOW_NON_MATCHING="-v"; | |
# find IP addresses anywhere in the string | |
# but avoid certain characters in the beginning and end |