I hereby claim:
- I am jperras on github.
- I am jperras (https://keybase.io/jperras) on keybase.
- I have a public key ASCVivxJMcbrFE90EG9HP9m-8n2c6R4QT9RupAR8allhRgo
To claim this, I am signing this object:
| [color] | |
| diff = auto | |
| status = auto | |
| branch = auto | |
| [color "branch"] | |
| current = yellow reverse | |
| local = yellow | |
| [color "diff"] | |
| meta = yellow | |
| frag = magenta bold |
| # -*- coding: utf-8 -*- | |
| import itertools | |
| import operator | |
| def trim(data, delta): | |
| """Trims elements within `delta` of other elements in the list.""" | |
| output = [] |
| { | |
| inputs = { | |
| nixpkgs.url = "github:nixos/nixpkgs"; | |
| flake-utils.url = "github:numtide/flake-utils"; | |
| }; | |
| outputs = { self, nixpkgs, flake-utils }: | |
| flake-utils.lib.eachDefaultSystem (system: | |
| with nixpkgs.legacyPackages.${system}; { | |
| packages.foo = rustPlatform.buildRustPackage { |
| { | |
| # This is our input set, it contains the channels we will construct the flake from. | |
| inputs = { | |
| # Flake-utils allows us to easily support multiple architectures. | |
| flake-utils.url = "github:numtide/flake-utils"; | |
| # Naersk is a zero-configuration zero-codegen solution to packaging Rust. | |
| naersk.url = "github:nix-community/naersk"; | |
| # Nixpkgs is the main package repo for Nix, we will use it to bring in all of our | |
| # libraries and tools. | |
| nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; |
| { | |
| description = "Small exercises to get you used to reading and writing Rust code"; | |
| inputs = { | |
| flake-compat = { | |
| url = "github:edolstra/flake-compat"; | |
| flake = false; | |
| }; | |
| flake-utils.url = "github:numtide/flake-utils"; | |
| nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; |
| scrooloose/nerdcommenter | |
| jreybert/vimagit | |
| tpope/vim-fugitive | |
| airblade/vim-gitgutter | |
| tpope/vim-abolish | |
| tpope/vim-unimpaired | |
| sbdchd/neoformat | |
| junegunn/fzf | |
| junegunn/fzf.vim | |
| sheerun/vim-polyglot |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| from unidecode import unidecode | |
| # Regular expression to match most "punctuation" | |
| punctuation_re = re.compile(r'[\t !"#$%&\'()*\-/<=>?@\[\\\]^_`{|},.]+') | |
| def slugify(text, delimiter=u'-'): | |
| """Generates an ASCII-only slug.""" | |
| result = [] | |
| for word in punctuation_re.split(text.lower()): |
| import re | |
| version_pattern = re.compile(r"/v(?P<version>[0-9a-z\-\+\.]+)", re.IGNORECASE) | |
| class VersionedAPIMiddleware(object): | |
| """ | |
| Allows a Werkzeug/Flask application to have a versioned API. | |
| This middleware will extract out the API version specification in a URL |