Skip to content

Instantly share code, notes, and snippets.

View floriankapaun's full-sized avatar
👋

floriankapaun

👋
View GitHub Profile
@ZhukV
ZhukV / ExcelFileResponse.php
Created July 26, 2013 08:46
Excel file response for download excel files usage PHPExcel library (Symfony HttpFoundation)
<?php
namespace Acme\DemoBundle\HttpFoundation;
use Symfony\Component\HttpFoundation\Response;
/**
* Response for download excel file
*/
class ExcelFileResponse extends Response
@alexpchin
alexpchin / Add_Existing_Project_To_Git.md
Created June 1, 2014 20:14
Add Existing Project To Git Repo

#Adding an existing project to GitHub using the command line

Simple steps to add existing project to Github.

1. Create a new repository on GitHub.

In Terminal, change the current working directory to your local project.

##2. Initialize the local directory as a Git repository.

git init
@imankulov
imankulov / README.md
Last active June 27, 2024 09:57
Parse JSON-encoded parameters from request queries with FastAPI

Problem: FastAPI doesn't accept JSON-encoded pydantic models in query strings. See #884.

Solution: Use json_param() from the snippet below.

Usage example.

from fastapi import FastAPI
from pydantic import BaseModel