Skip to content

Instantly share code, notes, and snippets.

@sk1418
sk1418 / surfingkeys.settings
Last active September 3, 2023 22:31
surfingkeys settings
// an example to create a new mapping `ctrl-y`
/*mapkey('<Ctrl-y>', 'Show me the money', function() {
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
});*/
const {
aceVimMap,
mapkey,
imap,
iunmap,
imapkey,
import lombok.AllArgsConstructor;
import static java.lang.Math.*;
@AllArgsConstructor
public class Game {
private Player p1;
private Player p2;
private static final int DEUCE_POINT = 3;
@sk1418
sk1418 / nodejs-cheatsheet.js
Created July 6, 2018 22:58 — forked from LeCoupa/nodejs-cheatsheet.js
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
set autoupdategist
set noautofocus
set nocncpcompletion
set smoothscroll
set hud
set noregex
set noinsertmappings
set typelinkhints
set defaultnewtabpage
let scrollduration = 10
@sk1418
sk1418 / gist:6094aee52c38cabe8f060b8cd80ce9bd
Created June 19, 2018 13:01 — 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
@sk1418
sk1418 / 0_reuse_code.js
Created April 6, 2017 08:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console