Skip to content

Instantly share code, notes, and snippets.

@latagore
latagore / intro.html
Last active August 14, 2017 01:38
Intro to HTML/CSS complete files
<!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>
@latagore
latagore / intro.html
Created August 13, 2017 19:04
Intro to HTML/CSS Workshop files
<!doctype html>
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
<p></p>
</body>
</html>
class Person
attr_accessor :name
def initialize(name)
@name = name
end
end
p = Person.new('L. Ron')
puts p.name
@latagore
latagore / ipv6-regex-test.sh
Last active June 29, 2016 23:18 — forked from syzdek/ipv6-regex-test.sh
Test IPv6 regular expression without dependency on custom scripts
#!/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