Suppose you're opening an issue and there's a lot of noisy logs that may be useful.
Rather than wrecking readability, wrap it in a <details>
tag!
<details>
<summary>Summary Goes Here</summary>
/// This is a list of Hypertext Transfer Protocol (HTTP) response status codes. | |
/// It includes codes from IETF internet standards, other IETF RFCs, other specifications, and some additional commonly used codes. | |
/// The first digit of the status code specifies one of five classes of response; an HTTP client must recognise these five classes at a minimum. | |
enum HTTPStatusCode: Int, Error { | |
/// The response class representation of status codes, these get grouped by their first digit. | |
enum ResponseType { | |
/// - informational: This class of status code indicates a provisional response, consisting only of the Status-Line and optional headers, and is terminated by an empty line. | |
case informational |
#!/usr/bin/env bash | |
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/ | |
### | |
# Label definitions | |
### | |
declare -A LABELS | |
# Platform |
http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12
$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
var targetDB = 'db' | |
var blacklist = ['_design/'] | |
var ddoc = 'test' | |
var viewName = 'emittedDocsToBeDeleted' | |
var toBeDeletedDocs = {} | |
var skip = 0 | |
var limit = 5000 | |
var totalRows = 0 | |
deleteDocuments(skip, limit) |
// Bootstrap dropdown fix | |
$('body') | |
.on('touchstart.dropdown', '.dropdown-menu', function (e) { e.stopPropagation(); }) | |
.on('touchstart.dropdown', '.dropdown-submenu', function (e) {e.preventDefault();}); |
This command attaches code (pull request) to an existing issue. This prevents:
You can use personal and organization github names and their branches.
git pull-request -i issue-number-without-the-# -b request-to-branch -h request-from-branch
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |