This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FindProxyForURL(url, host) { | |
// Bypass proxy for local addresses | |
if (shExpMatch(host, "*.local")) { | |
return "DIRECT"; | |
} | |
// Use proxy for all other requests | |
return "PROXY proxy.example.com:8080"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Custom: | |
Command + Num 1: Terminal | |
Command + Num 2: Switch projects | |
Command + Num 3: ? | |
Command + Num 4: Commit | |
Command + Num 5: Git log | |
Command + Num 6: Branches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"" .ideavimrc - Matt Chapman | |
"" Base Settings | |
"" ======================================================== | |
set scrolloff=10 | |
set linenumber | |
set showmode | |
set showcmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set ignorecase | |
set smartcase | |
set scrolloff=3 " 3 lines above/below cursor when scrolling | |
set idearefactormode=keep | |
set timeout timeoutlen=3000 ttimeoutlen=100 | |
set incsearch " Highlight search results when typing | |
set hlsearch " Highlight search results | |
set relativenumber " relative numbers | |
set number " current line number as absolute | |
set surround |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<!-- This is an automatically generated file. | |
It will be read and overwritten. | |
DO NOT EDIT! --> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
<TITLE>Bookmarks</TITLE> | |
<H1>Bookmarks</H1> | |
<DL><p> | |
<DT><H3 ADD_DATE="1557146110" LAST_MODIFIED="1651689144" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Bar</H3> | |
<DL><p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('component: ', component.fixure.debugElement.nativeElement.innerHTML); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0000:0000 | |
0:0 | |
1111:1111 | |
123456:123456 | |
1234:1234 | |
123:123 | |
123abc:123123abc123 | |
1:1 | |
1andrewscudder:1andrewscudder | |
3:3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ccsjson from https://github.com/aramk/CSSJSON | |
# file index.html | |
<html> | |
<head> | |
<link rel="stylesheet" href="style.css" type="text/css" /> | |
<script src="cssjson.js"></script> | |
<script> | |
const xhr = new XMLHttpRequest(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From here: https://github.com/engineer-man/youtube/blob/master/058/commands.sh | |
# 1. redo last command but as root | |
sudo !! | |
# 2. open an editor to run a command | |
ctrl+x+e | |
# 3. create a super fast ram disk | |
mkdir -p /mnt/ram |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.junit.Test; | |
import org.mockito.Matchers; | |
import org.mockito.Mockito; | |
import java.util.Arrays; | |
import java.util.List; | |
class SomeClass { | |
public String getResult(List param) { | |
return "real method called with a list"; |
NewerOlder