Skip to content

Instantly share code, notes, and snippets.

View markomanninen's full-sized avatar

Marko Manninen markomanninen

View GitHub Profile
Α-ΠΟ-ΚΑ-ΛΥ-ΨΙΣ Ι-Η-ΣΟΥ ΧΡΙ-ΣΤΟΥ ΗΝ Ε-ΔΩ-ΚΕΝ ΑΥ-ΤΩ
Ο ΘΕ-ΟΣ ΔΕΙ-ΞΑΙ ΤΟΙΣ ΔΟΥ-ΛΟΙΣ ΑΥ-ΤΟΥ Α ΔΕΙ ΓΕ-ΝΕ-ΣΘΑΙ ΕΝ
ΤΑ-ΧΕΙ ΚΑΙ Ε-ΣΗ-ΜΑ-ΝΕΝ Α-ΠΟ-ΣΤΕΙ-ΛΑΣ ΔΙ-Α ΤΟΥ ΑΓ-ΓΕ-
ΛΟΥ ΑΥ-ΤΟΥ ΤΩ ΔΟΥ-ΛΩ ΑΥ-ΤΟΥ Ι-Ω-ΑΝ-ΝΗ ΟΣ Ε-ΜΑΡ-ΤΥ-
ΡΗ-ΣΕΝ ΤΟΝ ΛΟ-ΓΟΝ ΤΟΥ ΘΕ-ΟΥ ΚΑΙ ΤΗΝ ΜΑΡ-ΤΥ-ΡΙ-ΑΝ Ι-Η-
ΣΟΥ ΧΡΙ-ΣΤΟΥ Ο-ΣΑ ΤΕ ΕΙ-ΔΕΝ ΜΑ-ΚΑ-ΡΙ-ΟΣ Ο Α-ΝΑ-ΓΙ-
ΝΩ-ΣΚΩΝ ΚΑΙ ΟΙ Α-ΚΟΥ-ΟΝ-ΤΕΣ ΤΟΥΣ ΛΟ-ΓΟΥΣ ΤΗΣ ΠΡΟ-ΦΗ-ΤΕΙ-ΑΣ
ΚΑΙ ΤΗ-ΡΟΥΝ-ΤΕΣ ΤΑ ΕΝ ΑΥ-ΤΗ ΓΕ-ΓΡΑΜ-ΜΕ-ΝΑ Ο ΓΑΡ ΚΑΙ-ΡΟΣ
ΕΓ-ΓΥΣ Ι-Ω-ΑΝ-ΝΗΣ ΤΑΙΣ Ε-ΠΤΑ ΕΚ-ΚΛΗ-ΣΙ-ΑΙΣ ΤΑΙΣ ΕΝ ΤΗ
Α-ΣΙ-Α ΧΑ-ΡΙΣ Υ-ΜΙΝ ΚΑΙ ΕΙ-ΡΗ-ΝΗ Α-ΠΟ ΤΟΥ Ο ΩΝ
@markomanninen
markomanninen / myapp.hy
Last active April 3, 2017 10:24
extract-keywords-and-expressions from Hy macro
(defclass MyApp [object]
(defn --init-- [self &kwargs args]
(setv self.routes {}))
(defn route [self route-str &kwargs args]
(fn [f]
(do (assoc self.routes route-str f)
f))))
(setv app (MyApp))
@markomanninen
markomanninen / PI Squared
Created September 7, 2015 16:42
Geometrical representation of square of pi
# Geometrical representation of square of pi?
a) Let's say I have a circle with a diameter $1$. Then a perimeter is $π$ (pi) and ratio between a perimeter and a diameter is $π$.
[![PI][1]][2]
b) I want to use π as a diameter of another circle, which gives a perimeter of $π*π = π^2$ and a ratio $\frac{π^2}{π} = π$.
[![PI squared][2]][1]
@markomanninen
markomanninen / Decimal expansion and notation
Created July 24, 2015 10:55
Decimal expansion and notation
##Decimal expansion and notation
###Background
For David's response on:
http://math.stackexchange.com/questions/1371400/four-mathematical-notations-for-fraction-1-999-and-how-to-show-present-they-ar/1372077#1372077
I want to explain background of the numerical musings, which I was already pondering on other topics like:
@markomanninen
markomanninen / runtests.py
Last active August 29, 2015 13:59 — forked from jiffyclub/runtests.py
Text output to html table format via tagpy dependency
from IPython.core.magic import register_line_magic
from IPython.display import HTML
from tagpy import helper as h, table
@register_line_magic
def runtests(line):
"""
The %runtests magic searches your IPython namespace for functions
with names that begin with 'test'. It will attempt to run these
functions (calling them with no arguments), and report whether they
@markomanninen
markomanninen / Perseus Greek Isopsephy Project.ipynb
Last active September 22, 2017 02:51
Perseus Greek Isopsephy Project
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@markomanninen
markomanninen / gist:1376487
Created November 18, 2011 13:40
Cannot find module './widgets/G'
root.load = (apis) ->
for api in apis
eval('root.'+api+' = require("./widgets/'+api+'").'+api)
return this
@markomanninen
markomanninen / objectobject
Created November 5, 2011 19:50
why function returns object object, not string?
spun = (msg) ->
timestamp = gmdatenow()
signature = get_signature(host, path, secret_key, access_key, timestamp, version)
msg.http(scheme + "://" + host + path)
.query
timestamp: timestamp
version: version
access_key: access_key
signature: signature
type: 'json'
@markomanninen
markomanninen / gist:1337862
Created November 3, 2011 21:39
post request returns object
spun = (msg) ->
msg.http("http://api.spinnerchief.com:9001/")
.query
wordquality: 9
wordscount: 3
api_key: env.HUBOT_SPINNERCHIEF_API_KEY
username: env.HUBOT_SPINNERCHIEF_USERNAME
password: env.HUBOT_SPINNERCHIEF_PASSWORD
.post(msg.match[1]) (err, res, body) ->
if err