I hereby claim:
- I am andreaferretti on github.
- I am andreaferretti (https://keybase.io/andreaferretti) on keybase.
- I have a public key ASB1C3n5xhQt2Ul4cj3e24uRhKRnxDwiMd8yQJ6YbFnojgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
""" | |
nim_magic.py | |
Jupyter cell magic for your favorite programming language. | |
Requirements: Nim (https://nim-lang.org), nimpy (`nimble install nimpy`, thanks to @yglukhov for this great library!) | |
Just put this file in some Python import dir | |
and then, in a Jupyter or JLab Notebook: |
MyNim is a tool to install and manage various versions of Nim and related tools.
Since it requires a bash and symlinks, it works fine on Unix derived systems (e.g. MacOSX or Linux) but not on Windows.
Just download the mynim
file, make it executable and put it somewhere on your $PATH.
var exitCode = 0 | |
if showOutput: | |
exitCode = execCmd(cmd) | |
else: | |
let (output, ec) = execCmdEx(cmd) | |
exitCode = ec | |
displayDebug("Finished", "with exit code " & $exitCode) | |
displayDebug("Output", output) |
I upgraded my iPhone 5s to iOS 10 and could no longer retrieve photos from it. This was unacceptable for me so I worked at achieving retrieving my photos. This document is my story (on Ubuntu 16.04).
The solution is to compile libimobiledevice and ifuse from source.
Don't forget to set up your environment before building. I typically build and install packages to my local user at $HOME/usr
.
template `~`(x): auto = | |
var h: ref type(x) | |
new(h) | |
h[] = x | |
h | |
type Foo = object | |
a, b, c: ref int | |
d: ref seq[int] | |
import macros | |
macro expandMacros(body: stmt): stmt = | |
template inner(x: stmt): stmt = x | |
result = getAst(inner(body)) | |
echo result.toStrLit |
/** | |
* The Matrix Example | |
* http://wiki.neo4j.org/content/The_Matrix | |
*/ | |
case class Matrix(name: String, profession: String) | |
object TheMatrix extends App with Neo4jWrapper with EmbeddedGraphDatabaseServiceProvider { | |
ShutdownHookThread { | |
shutdown(ds) |