Cop Name | Offenses | Auto-correctable | Enable | Notes |
---|---|---|---|---|
Naming/VariableNumber | 401 | No | ❌ | Extended in v1.2 to handle method names and symbols. |
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 python3 | |
import argparse | |
import os | |
import boto3 | |
from botocore.exceptions import ClientError | |
# -------------------------------------------------------------------- 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
--- | |
defaults: | |
features: &default_features | |
- title | |
- base_path | |
- summary | |
- body | |
tags: &default_tags | |
- primary_publishing_org | |
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
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a; }' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10 |
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
echo "Installing xcode-stuff" | |
xcode-select --install | |
# Check for Homebrew, | |
# Install if we don't have it | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi |
I hereby claim:
- I am theseanything on github.
- I am theseanything (https://keybase.io/theseanything) on keybase.
- I have a public key ASBIEO2J8YOzz6IvAKfftB-Nn_lGfXplKjtG1oZxoxvExQo
To claim this, I am signing this object:
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
import FluentSQLite | |
import Vapor | |
/// A single entry of a Issue list. | |
final class Issue: SQLiteModel { | |
/// The unique identifier for this `Issue`. | |
var id: Int? | |
var title: String | |
var description: String |
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 http.server import HTTPServer, BaseHTTPRequestHandler, __version__ | |
HOST = '' | |
PORT = 8080 | |
class DatabaseHTTPRequestHandler(BaseHTTPRequestHandler): | |
"""Request handler for interacting with a in-memory database""" | |
database = {} |