Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
franey
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
31.
▲
by
franey
7y ago
'Everybody' is singular, and 'their' is (generally) plural. One way to resolve that conflict would be to rewrite the second clause to say "...as one ought to do when one falls into deep water in one's clothes&q
32.
▲
by
franey
7y ago
I recently took Poetry for a spin when releasing Flake8 Markdown[1], and I thought it might be helpful to walk through the process of making a package using Poetry, from start to finish. I found it more straightforward than using setup.py a
33.
▲
Create and Publish a Python Package with Poetry
(johnfraney.ca)
5 points
by
franey
7y ago
|
1 comments
34.
▲
by
franey
7y ago
By far my favourite remap in (Neo)vim is to map : to ; and ; to , I don't know how many thousand key presses I've saved by not having to hit "Shift" for every command. " Use ; rather than : for commands no
35.
▲
by
franey
7y ago
This is a little project I put together to help ensure that the code examples in my Pelican-built blog are correct and to build a package using Poetry[1]. It's a thin wrapper around Flake8[2] that extracts backtick-style Python code bl
36.
▲
Show HN: Flake8 Markdown – lint Python code blocks in Markdown files
(github.com)
1 points
by
franey
7y ago
|
1 comments
37.
▲
by
franey
7y ago
I've been meaning to update that post to mention that Poetry has been releasing fixes and improvements more frequently than Pipenv. Poetry is great for developing packages, too. (Showing up in an HN thread is a neat little milestone fo
38.
▲
by
franey
7y ago
Yep! They changed that in version 1.1.0[1], released back in October. [1] https://github.com/usefathom/fathom/releases/tag/1.1.0
39.
▲
by
franey
7y ago
I use Fathom[1] for simple, privacy-conscious analytics on my blog. It is interesting to know which pages people are visiting and where they're visiting from. It's rewarding to see month-over-month increases in traffic, too--even
40.
▲
by
franey
7y ago
Yes.
41.
▲
by
franey
8y ago
There's also the classic one-liner: unique_array = list(set(non_unique_array))
42.
▲
by
franey
8y ago
Link for the lazy: https://www.law.cornell.edu/uscode/text/18/1030
43.
▲
by
franey
8y ago
You're conflating two different things: publishing classified material, which the DOJ under Obama didn't charge, and a CFAA violation. Assange is getting charged for a CFAA violation. "Hacking" isn't a great descrip
44.
▲
by
franey
8y ago
A person can use Transcrypt[1] to transpile quite a bit of Python to JavaScript. As a proof-of-concept, I put together a Django plugin[2] that uses Django's validators[3] along with Transcrypt to share validation logic between the serv
45.
▲
by
franey
8y ago
Saying that no indictment has been because of collusion isn't true, since Manafort was indicted in part for lying to investigators about his contacts with Kilimnik. Surely you'd agree that Trump's campaign chair giving US pol
46.
▲
by
franey
8y ago
FastAPI extends Starlette, so the developer didn't build an entirely new framework from scratch. Encode, the team that develops Starlette, also develops Django REST Framework. They help make the Python web development ecosystem what it
47.
▲
by
franey
8y ago
It seems like a lot of the "FastAPI features"[1] are coming not from FastAPI but from Starlette: - Just Modern Python - Editor support - Short - Unlimited "plug-ins" Would it be fair to say that this is Starlette + an AP
48.
▲
by
franey
8y ago
I've been using Antergos for years now. It's a great way to get Arch on a machine. I just replaced my GPU today. I ran `sudo pacman -S nvidia`, rebooted, and I was good to go. As an aside: Arch isn't as "bleeding edge&qu
49.
▲
by
franey
8y ago
One of the things I like most about CSS grid is being able to rearrange template areas for responsive design. Using flexbox inside a grid template area gives us the best of both worlds.
50.
▲
by
franey
8y ago
3.4 is EOL at the end of March, so we'll be seeing less and less of it.
51.
▲
by
franey
8y ago
I've been using Caps Lock as Esc for around a year now (and Shift + Shift for caps). It's a big ergonomic win for me on both my laptop and desktop keyboards.
52.
▲
by
franey
8y ago
Hello! This is a little plugin I threw together after wondering how I might be able to use Transcrypt[1] alongside Django. It's in its early stages (no tests) and has a limited feature set (no class-based validator support; only functi
53.
▲
Show HN: Django Front End Validators – form input validation using transpiled JS
(github.com)
1 points
by
franey
8y ago
|
1 comments
54.
▲
by
franey
9y ago
Python has optional static typing since at least 3.6[1]. apistar[2], a REST framework, uses modern Python's typing to serialize data, which is neat. [1] https://docs.python.org/3/whatsnew/3.6.html#pep-526-synt
55.
▲
by
franey
9y ago
In my part of the world (Nova Scotia, Canada), "dinner" often means either lunch or the largest meal of the day. When planning for Christmas dinner I've found myself asking, "Lunch dinner or supper dinner?"
56.
▲
by
franey
10y ago
I'm not sure. I hadn't heard of Entroware before. If the laptop has an Intel WiFi chip it should work out-of-the-box with distros running a recent Linux kernel. I ordered my laptop without an OS and have been running Arch on it fo
57.
▲
by
franey
10y ago
This laptop is getting a fair amount of coverage, but as far as I can tell it isn't anything new. It's a rebranded Clevo laptop shipped with Ubuntu, just like the System 76 Lemur. Disclosure: I'm registered as a Sager reselle
58.
▲
by
franey
10y ago
Huh! This is really neat. Thanks for taking the time to evangelize. I might have to try this for a day.
59.
▲
by
franey
10y ago
I've been using it for quite a while! At least since September 7, 2015 (thanks, GitHub), and it's come a long way since then.
60.
▲
by
franey
10y ago
In my experience Dokku is perfect for this. It uses Heroku's buildpacks to build your app inside a Docker container (or containers) and serves it on yourapp.yourserver.com via a git push: https://github.com/dokku/d
More ›