Skip to content

Instantly share code, notes, and snippets.

View vincefav's full-sized avatar

Vince vincefav

View GitHub Profile
@christianselig
christianselig / apollo-update-june-19-2023.md
Last active October 2, 2023 22:00
I want to debunk Reddit's claims, and talk about their unwillingness to work with developers, moderators, and the larger community, as well as say thank you for all the support

I wanted to address Reddit's continued, provably false statements, as well as answer some questions from the community, and also just say thanks.

(Before beginning, to the uninitiated, "the Reddit API" is just how apps and tools talk with Reddit to get posts in a subreddit, comments on a post, upvote, reply, etc.)

Reddit: "Developers don't want to pay"

Steve Huffman on June 15th: "These people who are mad, they’re mad because they used to get something for free, and now it’s going to be not free. And that free comes at the expense of our other users and our business. That’s what this is about. It can’t be free."

This is the false argument Steve Huffman keeps repeating the most. Developers are very happy to pay. Why? Reddit has many APIs (like voting in polls, Reddit Chat, view counts, etc.) that they haven't made available to developers, and a more formal relationship with Reddit has the opportunity to create a better API experience with more features available. I expressed this willingness to pay m

@jonperron
jonperron / gist:733c3ead188f72f0a8a6f39e3d89295d
Last active November 30, 2023 17:29
Serve pandas dataframe as csv with Django
from django.http import HttpResponse
import pandas as pd
def foo():
results = pd.Dataframe()
response = HttpResponse(content_type='text/csv')
response['Content-Disposition'] = 'attachment; filename=filename.csv'
results.to_csv(path_or_buf=response,sep=';',float_format='%.2f',index=False,decimal=",")