Skip to content

Commit

Permalink
2024-09-02 17:11:30.186703 new snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardocerqueira committed Sep 2, 2024
1 parent be37b8c commit 029b186
Show file tree
Hide file tree
Showing 34 changed files with 459 additions and 2,028 deletions.
48 changes: 48 additions & 0 deletions seeker/report.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,51 @@
--------------------------------------------------------------------------------
2024-09-02 17:11:30.186703
--------------------------------------------------------------------------------
On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
deleted: snippet/WikiLocation.java
deleted: snippet/WikiParser.java
deleted: snippet/adb-shell-as-root-dump-vendor.sh
deleted: snippet/bench.py
deleted: snippet/chat.py
deleted: snippet/collect_data_openai_sample_imports.py
deleted: snippet/csv2star.py
deleted: snippet/disable.bash
deleted: snippet/docker_iptables
deleted: snippet/error-handling-flask.py
deleted: snippet/flask.py
deleted: snippet/forty.java
deleted: snippet/mat_demo_v1.py
deleted: snippet/pipes_1.py
deleted: snippet/radar_chart_example.py
deleted: snippet/repack.sh
deleted: snippet/repackepub.sh
deleted: snippet/runner.go
deleted: snippet/spbpu_schedule_to_google_calendar.py
deleted: snippet/test.py
deleted: snippet/tts_backup.py
deleted: snippet/vendor_sleuth.sh
deleted: snippet/vlm_rag.py

Untracked files:
(use "git add <file>..." to include in what will be committed)
snippet/UnmodifiableList.java
snippet/deepseek_manifold.py
snippet/env.go
snippet/extract.go
snippet/forty_three.java
snippet/hurl.py
snippet/latest_tag_of.sh
snippet/run.sh
snippet/swap.sh
snippet/switch-desktop-env.sh

no changes added to commit (use "git add" and/or "git commit -a")

--------------------------------------------------------------------------------
2024-08-30 17:12:40.941245
--------------------------------------------------------------------------------
Expand Down
19 changes: 19 additions & 0 deletions seeker/snippet/UnmodifiableList.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//date: 2024-09-02T16:44:47Z
//url: https://api.github.com/gists/80bdaec048a85c75aea97e18c2230ce9
//owner: https://api.github.com/users/cyurtoz

// Creating a mutable ArrayList
List<Integer> originalList = new ArrayList<>();
originalList.add(1);
originalList.add(2);

// Creating an unmodifiableList on top of the mutable ArrayList
List<Integer> unmodifiableList = Collections.unmodifiableList(originalList);
System.out.println(unmodifiableList); // prints [1, 2]

unmodifiableList.add(3); // throws java.lang.UnsupportedOperationException

// add 3 to underlying list
originalList.add(3);
System.out.println(unmodifiableList); // prints [1, 2, 3]
// data on unmodifiableList has changed
88 changes: 0 additions & 88 deletions seeker/snippet/WikiLocation.java

This file was deleted.

117 changes: 0 additions & 117 deletions seeker/snippet/WikiParser.java

This file was deleted.

5 changes: 0 additions & 5 deletions seeker/snippet/adb-shell-as-root-dump-vendor.sh

This file was deleted.

Loading

0 comments on commit 029b186

Please sign in to comment.