tangled
alpha
login
or
join now
thecoded.prof
/
CMU
0
fork
atom
CMU Coding Bootcamp
0
fork
atom
overview
issues
pulls
pipelines
feat: start HTML unit
thecoded.prof
4 months ago
c69c17c6
80785524
verified
This commit was signed with the committer's
known signature
.
thecoded.prof
SSH Key Fingerprint:
SHA256:ePn0u8NlJyz3J4Zl9MHOYW3f4XKoi5K1I4j53bwpG0U=
+37
-9
6 changed files
expand all
collapse all
unified
split
html
README.md
css
styles.css
index.html
js
script.js
page2.html
nilla.nix
+1
html/README.md
···
1
1
+
# A Basic HTML Page
+3
html/css/styles.css
···
1
1
+
.h1 {
2
2
+
font-size: 32px;
3
3
+
}
+11
html/index.html
···
1
1
+
<html>
2
2
+
<head>
3
3
+
<title>HTML Page</title>
4
4
+
<link rel="stylesheet" href="css/styles.css" />
5
5
+
<script src="js/script.js"></script>
6
6
+
</head>
7
7
+
<body>
8
8
+
<h1>Hello World</h1>
9
9
+
<button id="nav" onclick="navigateToPage('page2.html')">Page 2</button>
10
10
+
</body>
11
11
+
</html>
+3
html/js/script.js
···
1
1
+
navigateToPage = (page) => {
2
2
+
window.location.href = page;
3
3
+
};
+11
html/page2.html
···
1
1
+
<html>
2
2
+
<head>
3
3
+
<title>Another Page</title>
4
4
+
<link rel="stylesheet" href="css/styles.css" />
5
5
+
<script src="js/script.js"></script>
6
6
+
</head>
7
7
+
<body>
8
8
+
<h1>Page 2!</h1>
9
9
+
<button id="nav" onclick="navigateToPage('index.html')">Index</button>
10
10
+
</body>
11
11
+
</html>
+8
-9
nilla.nix
···
78
78
mkShell {
79
79
shellHook = ''
80
80
[ "$(hostname)" = "shorthair" ] && export ZED_PREDICT_EDITS_URL=http://localhost:9000/predict_edits
81
81
+
unset TMPDIR
81
82
'';
82
83
packages = [
83
84
(python3.withPackages (ppkgs: [
···
108
109
}:
109
110
mkShell {
110
111
shellHook = ''
111
111
-
zed() {
112
112
-
/nix/store/071zfnbgg4f8i95rp6r5077z6mis3ss0-zed-editor-0.208.5/libexec/zed-editor "$@" & disown
113
113
-
}
114
114
-
export -f zed
112
112
+
unset TMPDIR
115
113
'';
116
114
packages = [
117
115
pkgs.bun
···
128
126
shells.none = {
129
127
systems = [ "x86_64-linux" ];
130
128
131
131
-
shell = {
132
132
-
mkShell
133
133
-
}:
129
129
+
shell =
130
130
+
{
131
131
+
mkShell,
132
132
+
}:
134
133
mkShell {
135
134
shellHook = ''
136
136
-
echo "hello"
137
137
-
'';
135
135
+
echo "hello"
136
136
+
'';
138
137
};
139
138
};
140
139
};