gizyboy1 commited on
Commit
63a4a9b
Β·
verified Β·
1 Parent(s): a9c3b27

bana lua kodu ver

Browse files
Files changed (2) hide show
  1. README.md +8 -5
  2. index.html +159 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Undefined Lua Wizardry
3
- emoji: 🐠
4
- colorFrom: green
5
- colorTo: gray
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: Undefined Lua Wizardry πŸ§™β€β™‚οΈ
3
+ colorFrom: gray
4
+ colorTo: pink
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://deepsite.hf.co).
index.html CHANGED
@@ -1,19 +1,160 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Undefined Lua Wizardry</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://unpkg.com/feather-icons"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
10
+ <style>
11
+ .undefined-bg {
12
+ background-color: rgba(0, 0, 0, 0.7);
13
+ }
14
+ .undefined-text {
15
+ color: #a0a0a0;
16
+ }
17
+ .undefined-border {
18
+ border-color: #404040;
19
+ }
20
+ .code-block {
21
+ font-family: 'Courier New', monospace;
22
+ background-color: #1a1a1a;
23
+ }
24
+ </style>
25
+ </head>
26
+ <body class="min-h-screen undefined-bg text-white">
27
+ <div id="vanta-bg" class="fixed inset-0 -z-10"></div>
28
+
29
+ <div class="container mx-auto px-4 py-16">
30
+ <header class="text-center mb-16">
31
+ <h1 class="text-5xl font-bold mb-4 undefined-text">Undefined Lua Wizardry ‍♂️</h1>
32
+ <p class="text-xl undefined-text">Where variables are undefined and colors are mysterious</p>
33
+ </header>
34
+
35
+ <main class="max-w-4xl mx-auto">
36
+ <div class="bg-black bg-opacity-50 rounded-xl p-8 mb-12 undefined-border border-2">
37
+ <h2 class="text-3xl font-semibold mb-6 undefined-text">Sample Lua Code</h2>
38
+
39
+ <div class="code-block p-6 rounded-lg overflow-x-auto">
40
+ <pre class="text-green-400">
41
+ --[[
42
+ UNDEFINED MODE LUA SCRIPT
43
+ This script demonstrates basic Lua structures in undefined mode
44
+ ]]
45
+
46
+ -- Undefined color palette (conceptually)
47
+ local undefinedColors = {
48
+ primary = "undefined",
49
+ secondary = "undefined",
50
+ background = "undefined"
51
+ }
52
+
53
+ -- Function to process undefined values
54
+ local function processUndefined(input)
55
+ -- Check if input is undefined
56
+ if input == nil then
57
+ return "This is properly undefined"
58
+ elseif input == "undefined" then
59
+ return "This is conceptually undefined"
60
+ else
61
+ return "This is defined as: " .. tostring(input)
62
+ end
63
+ end
64
+
65
+ -- Table operations with undefined elements
66
+ local undefinedTable = {
67
+ name = "undefined",
68
+ value = nil,
69
+ colors = undefinedColors,
70
+ isActive = false
71
+ }
72
+
73
+ -- Iterate through table
74
+ print("=== Table Contents ===")
75
+ for key, value in pairs(undefinedTable) do
76
+ local status = processUndefined(value)
77
+ print(string.format("Key: %-8s | Status: %s", key, status))
78
+ end
79
+
80
+ -- Conditional undefined checks
81
+ print("\n=== Conditional Checks ===")
82
+ local testVar
83
+ if not testVar then
84
+ print("Variable is undefined (nil)")
85
+ end
86
+
87
+ if undefinedTable.value == nil then
88
+ print("Table value is properly undefined")
89
+ end
90
+
91
+ -- Sample loop with undefined condition
92
+ print("\n=== Loop Example ===")
93
+ local counter = 1
94
+ while counter <= 5 do
95
+ local output = counter % 2 == 0 and "undefined" or nil
96
+ print(string.format("Iteration %d: %s", counter, processUndefined(output)))
97
+ counter = counter + 1
98
+ end
99
+ </pre>
100
+ </div>
101
+ </div>
102
+
103
+ <div class="grid md:grid-cols-2 gap-8">
104
+ <div class="bg-black bg-opacity-50 rounded-xl p-6 undefined-border border-2">
105
+ <div class="flex items-center mb-4">
106
+ <i data-feather="code" class="mr-2 undefined-text"></i>
107
+ <h3 class="text-2xl font-medium undefined-text">Features</h3>
108
+ </div>
109
+ <ul class="space-y-2">
110
+ <li class="flex items-start">
111
+ <i data-feather="check-circle" class="mr-2 text-green-400 mt-1"></i>
112
+ <span>Undefined mode variables</span>
113
+ </li>
114
+ <li class="flex items-start">
115
+ <i data-feather="check-circle" class="mr-2 text-green-400 mt-1"></i>
116
+ <span>Conceptual color scheme</span>
117
+ </li>
118
+ <li class="flex items-start">
119
+ <i data-feather="check-circle" class="mr-2 text-green-400 mt-1"></i>
120
+ <span>Proper nil checks</span>
121
+ </li>
122
+ </ul>
123
+ </div>
124
+
125
+ <div class="bg-black bg-opacity-50 rounded-xl p-6 undefined-border border-2">
126
+ <div class="flex items-center mb-4">
127
+ <i data-feather="info" class="mr-2 undefined-text"></i>
128
+ <h3 class="text-2xl font-medium undefined-text">About</h3>
129
+ </div>
130
+ <p class="mb-4">This Lua code demonstrates how to work with undefined values in a structured way, using the conceptual undefined color scheme.</p>
131
+ <div class="flex space-x-4">
132
+ <span class="px-3 py-1 rounded-full bg-gray-800 undefined-text">Lua 5.4</span>
133
+ <span class="px-3 py-1 rounded-full bg-gray-800 undefined-text">Undefined</span>
134
+ </div>
135
+ </div>
136
+ </div>
137
+ </main>
138
+
139
+ <footer class="mt-16 text-center undefined-text">
140
+ <p>Created with undefined magic ✨</p>
141
+ </footer>
142
+ </div>
143
+
144
+ <script>
145
+ VANTA.GLOBE({
146
+ el: "#vanta-bg",
147
+ mouseControls: true,
148
+ touchControls: true,
149
+ gyroControls: false,
150
+ minHeight: 200.00,
151
+ minWidth: 200.00,
152
+ scale: 1.00,
153
+ scaleMobile: 1.00,
154
+ color: 0x404040,
155
+ backgroundColor: 0x0
156
+ })
157
+ </script>
158
+ <script>feather.replace();</script>
159
+ </body>
160
  </html>