Skip to content

Instantly share code, notes, and snippets.

Avatar

Jan Dupal JanDupal

  • Brno, Czech Republic
View GitHub Profile
View Strava Analytics.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View keybase.md

Keybase proof

I hereby claim:

  • I am jandupal on github.
  • I am jandupal (https://keybase.io/jandupal) on keybase.
  • I have a public key ASACU-t4YA_nzvF4PW-g4KBpeC7Cl8lm3-rGD6A7N5rAQgo

To claim this, I am signing this object:

@JanDupal
JanDupal / mnist.ipynb
Created Nov 23, 2015
TensorFlow & MNIST learning visualization
View mnist.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JanDupal
JanDupal / README.md
Created Sep 22, 2012
Quick'n'dirty Jekyll plugin for sorted cycle
View README.md

Jekyll sorted_for plugin

Quick'n'dirty Jekyll plugin for sorted cycle.

Install

Copy sorted_for.rb to _plugins/ directory of your Jekyll site.

Usage

@JanDupal
JanDupal / resist.rb
Created Feb 8, 2012
Resistor combinations (serial, parallel) using GP ( https://github.com/phorsfall/genetics/ )
View resist.rb
$:.unshift("lib")
require "genetics"
require "pp"
class Resist < Tree
TARGET = 215
literals [50, 100, 500]
function(:para) { |a,b| (a*b)/(a+b) }
@JanDupal
JanDupal / interpol.hs
Created Aug 15, 2011
Vector interpolation in Haskell
View interpol.hs
size :: [Double] -> Double
size = sqrt . sum . map (**2)
add :: [Double] -> [Double] -> [Double]
add = zipWith (+)
normalize :: [Double] -> [Double]
normalize a = map (/ size a) a
interpolate :: [Double] -> [Double] -> [Double]