Skip to content

Instantly share code, notes, and snippets.

@jwheeler31
jwheeler31 / pyproject.toml
Created December 17, 2020 20:20
Gist for GitHub Issue - Incorrect Dependency Resolution
[tool.poetry]
name = "failing-poetry-isort"
version = "0.1.0"
description = ""
authors = ["Josh Wheeler <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.8"
[tool.poetry.dev-dependencies]
@jwheeler31
jwheeler31 / poetry add -D mypy
Last active November 6, 2020 14:37
Issue With Poetry 1.1.4 When Performing an Add
Using virtualenv: /Users/jwheeler/Library/Caches/pypoetry/virtualenvs/poetry-demo-esfPYa1_-py3.8
PyPI: No release information found for mypy-0.500, skipping
PyPI: 77 packages found for mypy *
Using version ^0.790 for mypy
Updating dependencies
Resolving dependencies...
1: fact: poetry-demo is 0.1.0
1: derived: poetry-demo
1: fact: poetry-demo depends on pendulum (^2.1.2)
@jwheeler31
jwheeler31 / UpToDate.groovy
Last active May 13, 2019 13:59
Naive Gradle replacement for Ant <uptodate/> task
/**
* Checks if the file at <tt>targetFilePath</tt> has a last modified time later
* than <tt>srcFilePath</tt>.
*
* At the time of writing, the goal of this method was to create a replacement for
* Apache Ant's <tt>uptodate</tt> task. This is a naive implementation of that
* task.
*
* @param srcFilePath fully qualified path to source file
* @param targetPath fully qualified path to the target
HAI 1.2
HOW IZ I factorial YR number
I HAS A result ITZ A NUMBR
BOTH SAEM number AN 1, O RLY?
YA RLY
FOUND YR number
NO WAI
result R PRODUKT OF I IZ factorial YR DIFF OF number AN 1 MKAY AN number
OIC
@jwheeler31
jwheeler31 / Program.cs
Last active August 29, 2015 14:23 — forked from sagacity/Program.cs
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Web;