Because I always forget this stuff, I'm putting it here.
Output of program:
cool
cool
cool
not cool
Because slicing ain't cool.
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Python: Debug Unit Tests", | |
"type": "debugpy", | |
"request": "launch", | |
"purpose": ["debug-test"], | |
"console": "integratedTerminal", | |
"justMyCode": false |
termcapinfo xterm* ti@:te@ | |
startup_message off | |
vbell off | |
defscrollback 16384 | |
altscreen on |
.idea/ | |
__pycache__/ |
#!/bin/bash | |
# IMPORTANT: set TARGET and DEST_DIR according to your use case | |
TARGET="example.com" | |
DEST_DIR="/etc/ssl/private/active" | |
set -e | |
echo "Renewal hook running to copy certificate and private key to appropriate directory..." |
import org.apache.commons.io.input.ReaderInputStream; | |
import org.fusesource.jansi.AnsiColors; | |
import org.fusesource.jansi.AnsiMode; | |
import org.fusesource.jansi.AnsiType; | |
import org.fusesource.jansi.io.AnsiOutputStream; | |
import org.fusesource.jansi.io.AnsiProcessor; | |
import java.io.ByteArrayOutputStream; |
Because I always forget this stuff, I'm putting it here.
Output of program:
cool
cool
cool
not cool
Because slicing ain't cool.
#!/usr/bin/env python3 | |
import itertools | |
import sys | |
from typing import NamedTuple, List, Optional, Callable, Iterable, Collection | |
from random import Random | |
from argparse import ArgumentParser | |
_DOODLEBUG_GESTATION = 8 | |
_ANT_GESTATION = 3 |
/.idea/ | |
__pycache__/ | |
/*.txt |
/venv/ | |
/*.txt | |
/.idea/ | |
__pycache__/ |