Skip to content

Commit 983f1de

Browse files
authored
Merge pull request #6 from acmucsd/website
feat(website): establish site infrastructure and desktop layout
2 parents 8e29435 + 82fe9b4 commit 983f1de

File tree

192 files changed

+5812
-2986
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+5812
-2986
lines changed

Fall20/NeuralNetworks2/backpropogation.ipynb

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Backpropogation"
8+
]
9+
},
310
{
411
"cell_type": "code",
512
"execution_count": 2,

NN/Workshop1/Introduction_To_AI_and_Neural_Networks.ipynb

+10-11
Large diffs are not rendered by default.

SP21/GAN/conditional_gan.ipynb

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Conditional GAN"
8+
]
9+
},
310
{
411
"cell_type": "code",
512
"execution_count": null,

SP21/GAN/vanilla_gan.ipynb

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Vanilla GAN"
8+
]
9+
},
310
{
411
"cell_type": "code",
512
"execution_count": null,
@@ -217,8 +224,8 @@
217224
],
218225
"metadata": {
219226
"kernelspec": {
220-
"name": "python379jvsc74a57bd0c3e162dbea2a7bde87c7844ddb2ca1843aba08611dc435aaff358cdc82c48661",
221-
"display_name": "Python 3.7.9 64-bit"
227+
"display_name": "Python 3.7.9 64-bit",
228+
"name": "python379jvsc74a57bd0c3e162dbea2a7bde87c7844ddb2ca1843aba08611dc435aaff358cdc82c48661"
222229
},
223230
"language_info": {
224231
"codemirror_mode": {
@@ -235,4 +242,4 @@
235242
},
236243
"nbformat": 4,
237244
"nbformat_minor": 2
238-
}
245+
}

WI21/nn.ipynb

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Neural Network"
8+
]
9+
},
310
{
411
"cell_type": "code",
512
"execution_count": 50,

website/LICENSE-docusaurus

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) Facebook, Inc. and its affiliates.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

website/lib/getWorkshops.ts

-33
This file was deleted.

website/lib/unified/processor.ts

-21
This file was deleted.

website/mdx/CodeBlock/CodeBlock.tsx

-99
This file was deleted.

website/mdx/CodeBlock/index.ts

-1
This file was deleted.

website/mdx/CodeBlock/styles.module.css

-82
This file was deleted.

website/next-env.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/// <reference types="next" />
2-
/// <reference types="next/types/global" />
32
/// <reference types="next/image-types/global" />
43

54
// NOTE: This file should not be edited

website/next.config.js

+33
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,37 @@
1+
// modifies Next.js's internal webpack config to add autogenerated typings for css modules
2+
const withTypedCssModules = (config) => {
3+
const cssLoaderRegex = /(?<!post)css-loader/;
4+
const typingsForCssModulesLoader = {
5+
loader: "@teamsupercell/typings-for-css-modules-loader",
6+
options: {
7+
disableLocalsExport: true,
8+
verifyOnly: process.env.NODE_ENV === "production",
9+
banner: `// AUTOGENERATED FILE -- DO NOT EDIT DIRECTLY`.trimStart(),
10+
},
11+
};
12+
13+
// looking for the webpack rules where `css-loader` is specified
14+
const { oneOf } = config.module.rules.find((rule) => Array.isArray(rule.oneOf));
15+
const rules = oneOf.filter((rule) => Array.isArray(rule.use));
16+
17+
rules.forEach((rule) => {
18+
const cssLoaderIndex = rule.use.findIndex((loader) => cssLoaderRegex.test(loader.loader));
19+
// no `css-loader` here -> skip
20+
if (cssLoaderIndex === -1) { return; }
21+
// webpack loaders are executed in reverse order
22+
// we want to inject the typings loader after `css-loader`,
23+
// but before other loaders `style-loader` or `mini-css-extract`
24+
rule.use.splice(cssLoaderIndex, 0, { ...typingsForCssModulesLoader });
25+
})
26+
27+
return config;
28+
}
29+
130
/** @type {import('next').NextConfig} */
231
module.exports = {
332
reactStrictMode: true,
33+
webpack (config) {
34+
config = withTypedCssModules(config)
35+
return config
36+
},
437
}

0 commit comments

Comments
 (0)