This file contains 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
package main | |
import ( | |
"golang.org/x/oauth2" | |
"github.com/google/go-github/github" | |
"context" | |
"fmt" | |
"time" | |
"os" | |
"log" |
This file contains 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
#![cfg_attr(test, feature(plugin))] | |
#![cfg_attr(test, plugin(quickcheck_macros))] | |
extern crate core; | |
#[cfg(test)] | |
extern crate quickcheck; | |
use core::iter; | |
use std::ops::Add; | |
#[derive(Ord, PartialOrd, PartialEq, Eq, Debug, Clone, Copy)] |
This file contains 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
#![cfg_attr(test, feature(plugin))] | |
#![cfg_attr(test, plugin(quickcheck_macros))] | |
#[cfg(test)] | |
extern crate quickcheck; | |
fn fizz_buzz(number: i32) -> String { | |
let mut result = String::new(); | |
if number % 3 == 0 { | |
result.push_str("Fizz") |
This file contains 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
pub fn validate_commit(message: &str) -> Result<&str, &str> { | |
check_gap_between_subject_and_body(message) | |
.and_then(check_subject_line_longer_than_50_characters) | |
.and_then(check_body_line_longer_than_72_characters) | |
} | |
fn check_gap_between_subject_and_body(message: &str) -> Result<&str, &str> { | |
has_one_line(message) | |
.or_else(|| has_empty_second_line(message)) | |
.ok_or("No gap between subject and body.") |
This file contains 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
#!/usr/bin/env bash | |
# Put this in ".git/hooks/commit-msg" | |
# and make it executable | |
# chmod a+x ".git/hooks/commit-msg" | |
set -euo pipefail | |
MSG="$1" |
This file contains 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
resources: | |
- name: rollerderbyrss-version | |
type: semver | |
source: | |
driver: git | |
uri: git@github.com:PurpleBooth/versions.git | |
branch: rollerderbyrss | |
private_key: ((github_private_key)) | |
initial_version: 0.3.0 |
This file contains 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
# Short (50 chars or less) summary of changes | |
# | |
# More detailed explanatory text, if necessary. Wrap it to | |
# about 72 characters or so. In some contexts, the first | |
# line is treated as the subject of an email and the rest of | |
# the text as the body. The blank line separating the | |
# summary from the body is critical (unless you omit the body | |
# entirely); tools like rebase can get confused if you run | |
# the two together. |
This file contains 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
aardvark | |
aardwolf | |
Aaronite | |
abaction | |
abaculus | |
abaissed | |
abampere | |
Abarambo | |
abasedly | |
abatable |
This file contains 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
FROM golang:1.9 | |
WORKDIR /go/src/github.com/purplebooth/example | |
COPY . . | |
RUN go build -ldflags "-linkmode external -extldflags -static" -a main.go | |
FROM scratch | |
COPY --from=0 /go/src/github.com/purplebooth/example/main /main | |
CMD ["/main"] |
This file contains 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
From e14992c251e1dbd1173a72c42c5ee95dc1c3711f Mon Sep 17 00:00:00 2001 | |
From: Billie Thompson <billie@purplebooth.co.uk> | |
Date: Tue, 29 Aug 2017 23:22:11 +0100 | |
Subject: [PATCH] Failing test for issue #472 | |
--- | |
tests/PHPStan/Analyser/NodeScopeResolverTest.php | 4 ++++ | |
tests/PHPStan/Analyser/data/functionPhpDocs.php | 2 ++ | |
2 files changed, 6 insertions(+) |