Skip to content

Instantly share code, notes, and snippets.

View tillahoffmann's full-sized avatar

Till Hoffmann tillahoffmann

View GitHub Profile
@tillahoffmann
tillahoffmann / instance-method-line-profiling.ipynb
Created April 21, 2016 08:55
Trying to profile cython instance methods line by line
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tillahoffmann
tillahoffmann / GitHub fiddling.user.js
Last active September 19, 2016 09:52
Use the code font for comment boxes and disable "Update branch" button.
// ==UserScript==
// @name GitHub fiddling
// @namespace http://sonalytic.com
// @version 0.1
// @author Till Hoffmann
// @match https://github.com/*
// @grant GM_addStyle
// @require https://code.jquery.com/jquery-3.1.0.min.js
// ==/UserScript==
@tillahoffmann
tillahoffmann / mathjax_simplenote.js
Last active November 8, 2016 13:12
JavaScript to add MathJax support to Simplenote web app.
if (window.MathJax === undefined) {
//Add the MathJax script
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML";
var config = 'MathJax.Hub.Config({' + 'extensions: ["tex2jax.js"],' + 'tex2jax: { inlineMath: [["$","$"],["\\\\\\\\\\\\(","\\\\\\\\\\\\)"]], displayMath: [["$","$"],["\\\\[","\\\\]"]], processEscapes: true },' + 'jax: ["input/TeX","output/HTML-CSS"]' + '});';
if (window.opera) {
script.innerHTML = config
} else {
script.text = config
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tillahoffmann
tillahoffmann / tensorflow_gradients.ipynb
Created December 29, 2016 14:10
Gradient calculation in tensorflow and numerical instabilities
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tillahoffmann
tillahoffmann / divgrad.ipynb
Created December 30, 2016 12:10
Gradient of the division operation in tensorflow
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tillahoffmann
tillahoffmann / example.ipynb
Last active February 11, 2017 18:33
Different approximations for regression without known covariates.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.