Escaped |
---|
| |
Markup:
| Escaped |
|---|
| \| |
Escaped |
---|
| |
Markup:
| Escaped |
|---|
| \| |
👩💻 Tester | 👹 Evil Coder | 👨🏫 Invigilator |
---|---|---|
Write a failing test | Don’t read the exercise! | No talking |
Keep it simple | Make the test pass | Don't take large steps |
Try to drive the code writer to the expected solution | Try to do it in a surprising way | Don't ignore bad test feedback |
No more than 3 || or && |
# empty |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>URL Extractor</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.0/css/bulma.min.css"> | |
</head> | |
<body> |
import { TestBed } from '@angular/core/testing'; | |
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; | |
import { DemoService } from './demo.service'; | |
fdescribe('DemoService', () => { | |
let service: DemoService; | |
let httpMock: HttpTestingController; | |
beforeEach(() => { |
from itertools import cycle | |
from random import choice, shuffle | |
from string import ascii_lowercase, ascii_uppercase, digits, punctuation | |
def generate_password(length: int = 20, *, use_symbols: bool = True) -> str: | |
"""Generate random passwords, with or without symbols. | |
Implementation ensures a fairly even balance of each character | |
class, at the cost of entropy (e.g. for a four-character password | |
with symbols there are only 5,191,680 possible combinations, rather |
#!/usr/bin/env bash | |
SCM_THEME_PROMPT_DIRTY=" ${red}✗" | |
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓" | |
SCM_THEME_PROMPT_PREFIX=" |" | |
SCM_THEME_PROMPT_SUFFIX="${green}|" | |
GIT_THEME_PROMPT_DIRTY=" ${red}✗" | |
GIT_THEME_PROMPT_CLEAN=" ${bold_green}✓" | |
GIT_THEME_PROMPT_PREFIX=" ${green}|" | |
GIT_THEME_PROMPT_SUFFIX="${green}|" |
Office for National Statistics: https://www.ons.gov.uk/economy/inflationandpriceindices/bulletins/consumerpriceinflation/latest
#! /usr/bin/env python3 | |
"""Generate moderately secure passwords. | |
Format: {word1}{number}{word2}{symbol} | |
By default, words are 8-10 characters long and the number is two digits. | |
Suggested word source (use words_alpha.txt): | |
https://github.com/dwyl/english-words |