Skip to content

Instantly share code, notes, and snippets.

@stisa
stisa / ipynb2nim.nim
Last active September 11, 2016 11:24
Parse nim based jupyter notebook into a sort of literate nim, markdown goes into documentation blocks and code is kept
import os,json,strutils
## TODO:
# - check input file type
# - a parser for markdown->html
let arguments = commandLineParams() # [0] should always be the input file
var nbf = arguments[0].readFile
var outfile :string

To use this hook, add the following to project.flow:

build : {
  dependencies : {
    luxe : '*',
  },
  post : {    
    priority : 1,
    name : 'move-to-gh-pages',
@stisa
stisa / Unproject.md
Last active August 29, 2015 14:15
Libgdx unproject

Use camera.unproject(vector3)

vector3 is:

x = Gdx.input.getX();
y = Gdx.input.getY();
z=0;
Vector3 vector3 = new Vector3 (x,y,z);

<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;