Skip to content

Instantly share code, notes, and snippets.

Konrad Hinsen khinsen

Block or report user

Report or block khinsen

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 numpy-applications.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@khinsen
khinsen / numpy-performance.ipynb
Created Dec 5, 2018
NumPy - mesures du temps CPU
View numpy-performance.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@khinsen
khinsen / Introduction-NumPy.ipynb
Created Dec 3, 2018
Cours GSON du 27 novembre 2018
View Introduction-NumPy.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@khinsen
khinsen / exercices-numpy.ipynb
Created Dec 3, 2018
Cours GSON du 4 décembre 2018 - exercices d'échauffement
View exercices-numpy.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@khinsen
khinsen / markdown-notes.org
Created Nov 6, 2018
An org-mode document containing markdown notes
View markdown-notes.org

Markdown notes inside org-mode

The command org-babel-tangle will produce a file notes.md containing only the Markdown blocks from this file.

This is the first Markdown block:

# A section
View keybase.md

Keybase proof

I hereby claim:

  • I am khinsen on github.
  • I am khinsen (https://keybase.io/khinsen) on keybase.
  • I have a public key ASCSrP4D-AfLbU4M8xcDQd53ZZMyxIjutYBftEExkUe9oAo

To claim this, I am signing this object:

View lysozyme
N 3.236 10.179 10.421
C 2.383 10.507 9.245
C 2.368 12.012 9.049
O 2.360 12.771 10.026
C 0.961 10.028 9.504
C -0.075 10.525 8.529
C -1.438 10.097 9.018
C -2.558 10.727 8.225
N -2.527 10.331 6.797
N 2.444 12.442 7.796
@khinsen
khinsen / contact with quote in name
Created Mar 19, 2013
Import this file into Google Contacts, then sync with BBDB. The resulting BBDB entry has a syntax error.
View contact with quote in name
Name,Given Name,Additional Name,Family Name,Yomi Name,Given Name Yomi,Additional Name Yomi,Family Name Yomi,Name Prefix,Name Suffix,Initials,Nickname,Short Name,Maiden Name,Birthday,Gender,Location,Billing Information,Directory Server,Mileage,Occupation,Hobby,Sensitivity,Priority,Subject,Notes,Group Membership,E-mail 1 - Type,E-mail 1 - Value,Phone 1 - Type,Phone 1 - Value,Address 1 - Type,Address 1 - Formatted,Address 1 - Street,Address 1 - City,Address 1 - PO Box,Address 1 - Region,Address 1 - Postal Code,Address 1 - Country,Address 1 - Extended Address,Organization 1 - Type,Organization 1 - Name,Organization 1 - Yomi Name,Organization 1 - Title,Organization 1 - Department,Organization 1 - Symbol,Organization 1 - Location,Organization 1 - Job Description,Website 1 - Type,Website 1 - Value,Custom Field 1 - Type,Custom Field 1 - Value,Custom Field 2 - Type,Custom Field 2 - Value
"Hotel Alla Salute ""da Cici""",Hotel,"Alla Salute ""da","Cici""",,,,,,,,,,,,,,,,,,,,,,,* My Contacts ::: Hotels,* Work,info@hotelsa
@khinsen
khinsen / vote_counting_parallel.py
Created Nov 16, 2012
Solution modèle pour la parallélisation du comptage des votes
View vote_counting_parallel.py
from Scientific.DistributedComputing.MasterSlave \
import MasterProcess, SlaveProcess, runJob
votes = 20*['A'] + 25*['B'] + 22*['C']
chunk_size = 10
class Master(MasterProcess):
def run(self):
@khinsen
khinsen / gist:3810448
Created Oct 1, 2012
A challenge for typed Clojure
View gist:3810448
; A simple example for using the writer monad
(domonad (writer-m "")
[x (m-result 1)
_ (write "first step\n")
y (m-result 2)
_ (write "second step\n")]
(+ x y))
; where write (defined in algo.monads) is:
You can’t perform that action at this time.