]> git.example.dev Git - research-obsidian.git/commitdiff
cheatsheet and watchlist
author2weiEmu <zweiemu@gmail.com>
Thu, 26 Mar 2026 15:11:55 +0000 (16:11 +0100)
committer2weiEmu <zweiemu@gmail.com>
Thu, 26 Mar 2026 15:11:55 +0000 (16:11 +0100)
.obsidian/app.json
.obsidian/appearance.json
.obsidian/workspace.json
DGG Hackathon Simple Cheatsheet.md [new file with mode: 0644]
Watchlist & Do List.md

index 43721a72c5239ace64b8f9c410e289a20f00da89..e0dc0709b663c2d37b640cfaf7293d9dfbfeef91 100644 (file)
@@ -6,8 +6,8 @@
     "includeName": true,
     "pageSize": "A4",
     "landscape": false,
-    "margin": "0",
-    "downscalePercent": 80
+    "margin": "2",
+    "downscalePercent": 67
   },
   "promptDelete": false,
   "openBehavior": "file:List of things to do",
index a672e0d3acc3464919dfc41e2415b38f0e113f89..62aa922b6b241fd0f0d9264dbae51ab8d155f111 100644 (file)
@@ -4,5 +4,5 @@
   "interfaceFontFamily": "Courier Code",
   "textFontFamily": "Courier Code",
   "monospaceFontFamily": "Courier Code",
-  "cssTheme": "Obsidian gruvbox"
+  "cssTheme": "Sanctum"
 }
\ No newline at end of file
index c493b8ca99a742db2355fcf8b73e12513fb4c629..b76f23db9a165e861f9bfeeb8dae9157010ba17d 100644 (file)
@@ -8,12 +8,12 @@
         "type": "tabs",
         "children": [
           {
-            "id": "d2b9d46d83ae4703",
+            "id": "1598ee3eb0962476",
             "type": "leaf",
             "state": {
               "type": "markdown",
               "state": {
-                "file": "WP and Flamethrowers/Apparently White Phosphorus and Flamethrowers are not illegal under international law.md",
+                "file": "Watchlist & Do List.md",
                 "mode": "source",
                 "source": false,
                 "backlinks": true,
@@ -28,7 +28,7 @@
                 }
               },
               "icon": "lucide-file",
-              "title": "Apparently White Phosphorus and Flamethrowers are not illegal under international law"
+              "title": "Watchlist & Do List"
             }
           }
         ]
       "pdf-plus:PDF++: Toggle auto-paste": false
     }
   },
-  "active": "d2b9d46d83ae4703",
+  "active": "1598ee3eb0962476",
   "lastOpenFiles": [
+    "List of things to do.md",
+    "DGG Hackathon Simple Cheatsheet.md",
     "WP and Flamethrowers/Apparently White Phosphorus and Flamethrowers are not illegal under international law.md",
     "WP and Flamethrowers",
     "Nebulous Command/Missile Interception/Det. vs. Intc. vs. Saturation.md",
-    "List of things to do.md",
     "Nebulous Command/Missile Interception/Data.md",
     "Nebulous Command/Missile Interception/Effective Defense Layouts.md",
     "Nebulous Command/Missile Interception/Test Layouts/SCC_SGM211_Layout.png",
     "European Union/Child Sexual Abuse Act/Notes on the Original Document.md",
     "European Union/Child Sexual Abuse Act/cellar_13e33abf-d209-11ec-a95f-01aa75ed71a1.0001.02_DOC_1.pdf",
     "Nebulous Command/Notes on Nebulous Command.md",
-    "Nebulous Command/Notes on Mechanics.md",
     "NoteOn/note-on-logo.png",
     "NoteOn/note-on-500-oops.svg",
     "NoteOn/note-on-404-not-found.svg",
diff --git a/DGG Hackathon Simple Cheatsheet.md b/DGG Hackathon Simple Cheatsheet.md
new file mode 100644 (file)
index 0000000..bb114a3
--- /dev/null
@@ -0,0 +1,74 @@
+lambda functions and map function
+
+```python
+% # MOD operator
+// # Integer division Math.floor(a / b)
+
+def FUNCTION_NAME(arg1[: type], arg2[: type]):
+       # the indent is needed
+       
+while CONDITION:
+       # indent
+       
+for variable in ARRAY: # every item in array
+
+for index, variable in enumerate(ARRAY): 
+
+# length of str or array
+a, b = len(STR), len(ARRAY)
+
+for index in range(len(ARRAY)):
+# range(ARRAY), creates a range of numbers
+# according to range(START, STOP, STEP)
+# STOP non-inclusive
+
+l = list(range(0, 5)) # may be cast to list
+# [0, 1, 2, 3, 4]
+
+if VAR in ARRAY:
+
+if VAR not in ARRAY:
+
+match var:
+       case PATTERN:
+               <action>
+       case _:
+               <default action>
+```
+### Arrays
+```python
+ARRAY.append(ELEMENT)
+ARRAY.count(ELEMENT)
+ARRAY.index(ELEMENT) # first index of element
+ARRAY.reverse()
+ARRAY[index] # indexing
+ARRAY[start:stop] # index, stop is not included
+ARRAY[start:stop:step] # slice with step
+# e.g. fast reverse: ARRAY[::-1] is ARRAY but reversed
+
+k = [var * 2 for var in ARRAY] # fast map
+k = [var * 2 if CONDITION for var in ARRAY]
+k = [var * 2 if CONDITION else var for var in ARRAY]
+```
+### String manipulation
+```python
+STRING.join(ARRAY)
+# e.g.
+# ",".join(["3", "5", "3"])
+# "3,5,3"
+
+STR = f"The value of this variable is {VAR}" 
+STR = f"{VAR:.2f}" # limits to two decimal points
+
+INT = ord(CHAR) # ASCII value
+CHAR = chr(INT) # other way around
+ARRAY = STRING.split(CHAR)
+INT = STRING.find(SUBSTRING[, START, STOP]) # first occurence index
+INT = STRING.rfind(SUBSTRING[, START, STOP]) # first occurence index, but in reverse
+STRING.isdigit()
+STRING.isalpha() # i.e. alphabetic char > 1
+STR = STR.lower() # lowercase
+STR = STR.upper() # uppercase
+STR = STR.strip(STR of CHARS)
+STR = STR.replace(OLD, NEW)
+```
\ No newline at end of file
index 0ecdffd499fd095ca6aed3a08af990be2f12e434..b9bcc49650e218190b71f43957ee4ebe3918eb44 100644 (file)
@@ -55,6 +55,23 @@ the wire
 hannibal
 frieren
 
+project hail mary
+
+play: death stranding
+
+listen: god is an astronaut
+
+watch: dark
+
+watch: ministry of ungentlemanly warfare
+
+watch: kingdom of heaven 
+
+watch: the dark knight
+
+watch: kill bill 
+
+watch: knight of the seven kingdoms
 
 The family stone