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
// should be all code... | |
use std::pin::Pin; | |
use std::result::Result as RResult; | |
use futures::Stream; | |
use futures::StreamExt; | |
use futures::task::Context; | |
use futures::task::Poll; | |
use anyhow::Error; |
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 | |
help() { | |
cat <<EOS | |
$0 [-h | --help] [base] [head] | |
Diff current branch (or [head], if passed) to [base] | |
EOS | |
} |
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
{ pkgs ? (import <nixpkgs> {}) }: | |
rec { | |
# import nixpkgs from a specific commit hash | |
oldNixpkgs = pkgs.fetchFromGitHub { | |
owner = "nixos"; | |
repo = "nixpkgs"; | |
# here goes the commit hash | |
rev = "c2268175651c4aa1da23c1b84ecebc0a0df56633"; |
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 | |
Green='\e[0;32m' # Green | |
Red='\e[0;31m' # Red | |
Color_Off='\e[0m' # Text Reset | |
files=$(cargo fmt -- --check --files-with-diff) | |
staged=$(git diff --name-only --staged) |
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
name: lint commit messages | |
on: | |
pull_request: | |
jobs: | |
commit-lint: | |
runs-on: "ubuntu-latest" | |
steps: |
OlderNewer