This file contains hidden or 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
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
This file contains hidden or 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
# Basic commands | |
:Git [args] # does what you'd expect | |
all of your `~/.gitconfig` aliases are available. | |
:Git! [args] # same as before, dumping output to a tmp file | |
Moving inside a repo. |
This file contains hidden or 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
local java_cmds = vim.api.nvim_create_augroup('java_cmds', {clear = true}) | |
local cache_vars = {} | |
local root_files = { | |
'.git', | |
'mvnw', | |
'gradlew', | |
'pom.xml', | |
'build.gradle' | |
} |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<profiles version="21"> | |
<profile kind="CodeFormatterProfile" name="Default" version="21"> | |
<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/> | |
<setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/> | |
<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/> | |
<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/> | |
<setting id="org.eclipse.jdt.core.formatter.text_block_indentation" value="0"/> | |
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header" value="true"/> | |
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header" value="true"/> |
This file contains hidden or 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
(() => { | |
const fpsDiv = document.createElement('div'); | |
fpsDiv.style.position = 'fixed'; | |
fpsDiv.style.bottom = '0px'; | |
fpsDiv.style.right = '0px'; | |
fpsDiv.style.fontSize = '12px'; | |
fpsDiv.style.backgroundColor = 'lightgreen'; | |
fpsDiv.style.padding = '5px'; | |
fpsDiv.style.zIndex = '9999'; | |
fpsDiv.style.width = '50px'; |