Skip to content

Instantly share code, notes, and snippets.

View Djiit's full-sized avatar
🎯
Focusing

Julien Tanay Djiit

🎯
Focusing
View GitHub Profile
This file has been truncated, but you can view the full file.
@Djiit
Djiit / pipefile.md
Created October 26, 2017 14:28
Pipfile and Pipenv : the future of Python dependencies management

Pipfile and Pipenv : the future of Python dependencies management

Yes, I hear you. pip is a great tool and has been around for quite a long time. But for 3 years or so, people (contributors) have been looking for a way to enhance our packages management experience. Think about the superpowers of a npm (or better, yarn) in your favorite tool.

What they propose is (more or less) a replacement for the age-old requirements.txt file : the Pipfile.

How I learn to stop worrying and love pip (again)

The new Pipfile differs from the old-style requirements file is several ways :

  • It uses TOML syntax to allow more configuration;

Keybase proof

I hereby claim:

  • I am djiit on github.
  • I am jtanay (https://keybase.io/jtanay) on keybase.
  • I have a public key ASBHzQOOo4BEtaeIYuaQ_ZVhK3llalGcntB5QAwoBkdwVgo

To claim this, I am signing this object:

@Djiit
Djiit / django-ajax.html
Last active September 30, 2015 09:37 — forked from jhuckabee/gist:810552e99959eacbbea9
django-ajax
<polymer-element name="django-ajax" extends="core-ajax">
<script>
Polymer({
getCSRFCookie: function() {
b = document.cookie.match('(^|;)\\s*csrftoken\\s*=\\s*([^;]+)');
return b ? b.pop() : '';
},
ready: function() {
this.super();
this.headers = {