italic
bold
monospace
This is a block of code.
print('hello world')
| from collections import defaultdict | |
| def solve(S): | |
| max_distance = -1 | |
| digrams = defaultdict(list) | |
| for i in range(len(S) - 1): | |
| digram = S[i:i + 2] | |
| digrams[digram].append(i) | |
| if len(digrams[digram]) > 1: |
| """ | |
| Blur detection with OpenCV. | |
| Installation: | |
| $ pip install opencv-python | |
| Sample usage: | |
| $ python focus.py blurry.jpg | |
| 71.12557564908613 | |
| $ python focus.py sharp.png |
| class DefaultMap extends Map { | |
| constructor(fn) { | |
| super() | |
| this.fn = fn | |
| } | |
| get(key) { | |
| if (!this.has(key)) { | |
| this.set(key, this.fn()) |
italic
bold
monospace
This is a block of code.
print('hello world')
| package com.blogspot.syntaxcandy; | |
| import org.testng.annotations.BeforeMethod; | |
| import org.testng.annotations.Test; | |
| public class A extends BaseClass { | |
| @BeforeMethod | |
| public void beforeMethod() { | |
| System.out.println("A::@BeforeMethod"); |