DEV Community

Florian Rohrer profile picture

Florian Rohrer

such software.. much wow!

Location Vienna - Austria Joined Joined onΒ  github website

All 51 comments

Advent of Code 2020: Python Solution Day 8

Found a very similar solution: github.com/r0f1/adventofcode20...

Advent of Code 2020: Python Solution Day 6

Here is my Python solution: from collections import Counte...

Advent of Code 2020 Solution Megathread - Day 1: Report Repair

I am also gonna be doing aoc this year. Here is my Python sol...

AoC Day 14: Chocolate Charts

Python n = 293801 # Part 1 q = [3,7] e1, e2 = 0, 1 n_cre...

AoC Day 12: Subterranean Sustainability

Python. Part 1 from more_itertools import windowed from...

AoC Day 11: Chronal Charge

Python n = 7689 from itertools import product from math...

AoC Day 8: Memory Maneuver

Here is my Python Solution: Both parts with open("input...

AoC Day 7: The Sum of Its Parts

Fighting my way up the leaderboard. My Python Solution P...

AoC Day 6: Chronal Coordinates

Python using a kd-tree. from collections import defaultd...

AoC Day 3: No Matter How You Slice It

Part 1 import numpy as np with open("input.txt") as f:...

AoC Day 2: Inventory Management System

It is external. I found it via a quick google search. The e...

AoC Day 2: Inventory Management System

Part 1 from collections import Counter with open("input...

AoC Day 1: Chronal Calibration

I'd also suggest to use a context manager (the with keyword...

How Specific Are you With Your Imports and Why?

from mymodule import funca from mymodule import funcb from...

How would you define high quality code?

My personal definition is very subjective: A code is of hig...

basic learning

hi

Project Euler #1 - Multiples of 3 and 5

For fun: A shorter solution. sum({*range(3, 1000, 3)} | {*r...

Project Euler #1 - Multiples of 3 and 5

Python print(sum(i for i in range(1001) if i % 3 == 0 or i ...

Write a simple but impactful script

Please do :D

Write a simple but impactful script

That is awesome. Didn't know you could use an f.write() ins...

Write a script to find permutable prime numbers

Nice one! from collections import deque def perms(p): ...

Blockchain: exploring possible use cases

The blockchain can also enable new kinds of games: CryptoK...

JavaScript is almost pythonic

To add to the Getter & Setter examples: You can use thi...

Advent of Code 2017

Here you go: Github Link I will be doing everything in Pyt...

About time

Thank you for your article, Vicky! Great read. You wrote W...

Why all this hate about Python?

CSV Challenge

Nice post! import json from csv import DictWriter with ope...

What are your personal stories/examples of "naming things"?

I am annoyed when variable names seem correct at first glan...

Recognizing a trend vs. a lasting truth

I don't have crystal ball. However, a couple of months ago ...

Code Challenge: Follow the Dirty Money

Loving it! import json import requests import re start_...

Challenge: Write your worst program

Haha yeah agreed, that is a more accurate description of wh...

Organizing your life using Github

For a while now, I have been using github for my exercise a...

Challenge: Write your worst program

haha nice!

Challenge: Write your worst program

Ok, I've updated the description to better reflect what I m...

Challenge: Write your worst program

Hi, thank you for your response. Of course, I know about th...

Parenthetically Speaking

I like this, because this is one of the classical problems ...

What are your UNIX pipeline commands that saved you from lot of coding/time?

grep -R might not be available on older systems.

What are your UNIX pipeline commands that saved you from lot of coding/time?

The Just Commit Everything command: alias gitasdf='git add -...

What do you Google EVERY. SINGLE. TIME. and never just memorize?

How to use grep and find. Also when I write data = {} in Py...

Challenge: Write a program that never stops

haha, reminds me of: stackstatus.net/post/147710624694/...

Challenge: Write a program that never stops

This gotta be the happiest loop, I've ever seen.

Challenge: Write a program that never stops

C // 1 int i = 0; while(i < 10) { if(i = 5) ...

Challenge: Write a program that never stops

I really like the last one. Defining a label to a comment -...

4 Useful Things in Python

Hi, Thanks for your comment, I think you are right. If you ...

Do you think there is a language better suited for solving data structures and algorithms?

Hi, judging from your description, I think you talk about t...

Only code goes into a repository, right?

Thank you for sharing! Very interesting :)

Advice on training junior developers

Hey Lynne, I regularly teach other people to do statistical...

Sentiment analysis on Trump's tweets using Python 🐍

Thank you for your tutorial! Its was easy to follow and eve...

What is the most confusing thing to you in Python?

To add to that last one. You can actually change manipulate...

What is the most confusing thing to you in Python?

Wow, thank you for your elaborate response! :)

What's your favorite useless repo/package/website/etc?

A Latex package to add coffee stains. hanno-rein.de/archiv...

loading...