Skip to content

Instantly share code, notes, and snippets.

Christian Jauvin cjauvin

Block or report user

Report or block cjauvin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View flinks_basic_auth_flow.py
View seb.py
from flask import Flask, send_file
from io import BytesIO
app = Flask(__name__)
@app.route('/get_placements')
def get_placements():
placements = '<Placemark>bla</Placemark>' # replace with your own placement creation logic
f = BytesIO() # memory buffer, acting as a file
# f-strings are new in py3.6+
View perspectron.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View torch.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View tf.while_loop.py
import numpy as np
import tensorflow as tf
N = 5
M = tf.constant(np.arange(N * N).reshape((N, N)), dtype=tf.int32) # N x N tensor, with values from 0 to N-1
# This code implements a fully differentiable summation of all the elements of M where i != j
# inner loop, on columns
def body(i, r):
View probs.org

Concepts de base en prob

Soleil/Pluienonouitotal
oui75277
non101323
total8515100

Il fait soleil 77% du temps, et il pleut 15% du temps (les deux ne sont pas mutuellement exclusifs).

View toto.py
>>> words = "L’organisme ou la forme peut etre desintegres sin on en fait un emploi occulte".split()
>>> words
['L’organisme', 'ou', 'la', 'forme', 'peut', 'etre', 'desintegres', 'sin', 'on', 'en', 'fait', 'un', 'emploi', 'occulte']
>>> n_words = len(words)
>>> left = words[:n_words//2]
>>> left
['L’organisme', 'ou', 'la', 'forme', 'peut', 'etre', 'desintegres']
>>> right = words[n_words//2:]
>>> right
['sin', 'on', 'en', 'fait', 'un', 'emploi', 'occulte']
View ICLR_data.html
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>iclr_data</title>
<!-- 2018-02-08 Thu 15:54 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="generator" content="Org-mode" />
<meta name="author" content="Christian Jauvin" />
View meds.py
#!/usr/bin/env python
import datetime as dt
import json
import os
N_PER_BOX = 30
path = os.path.dirname(os.path.realpath(__file__))
You can’t perform that action at this time.