Skip to content

Instantly share code, notes, and snippets.

View kilg-kory's full-sized avatar
🏠
Working from home

Ilya kilg-kory

🏠
Working from home
View GitHub Profile
@kilg-kory
kilg-kory / gist:04f6b6bfeb79734ff743f8bbdffc5da8
Created July 31, 2018 10:39 — forked from psayre23/gist:c30a821239f4818b0709
Runtime Complexity of Java Collections
Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
---------------------|------|--------|------|----------|------|---------------
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array
@kilg-kory
kilg-kory / UserController.java
Created July 29, 2018 23:05
Recieve checkboxes
@Controller
@RequestMapping("/user")
@PreAuthorize("hasAuthority('ADMIN')")
public class UserController {
@Autowired
UserRepository userRepository;
@GetMapping
XXkb.mainwindow.enable: yes
XXkb.mainwindow.label.enable: yes
XXkb.mainwindow.type: tray
XXkb.mainwindow.appicon: no
XXkb.mainwindow.geometry: 15x15+0+0
XXkb.mainwindow.label.background: black
XXkb.mainwindow.label.foreground: white
XXkb.mainwindow.label.font: -misc-*-r-*-14-*
XXkb.mainwindow.label.text.1: En
XXkb.mainwindow.label.text.2: Ru