Skip to content

Instantly share code, notes, and snippets.

In [7]: d = {'test': 'This works!'}
In [8]: d['test']
Out[8]: 'This works!'
In [9]: d['error']
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-9-87842e67411c> in <module>()
----> 1 d['error']
@Ismael-VC
Ismael-VC / sphinx_start
Created March 4, 2014 15:56
My current setup of julia-es for sphinx
ismaelvc@toybox ~/D/julia-es (setup)> sphinx-quickstart
Welcome to the Sphinx 1.2.1 quickstart utility.
Please enter values for the following settings (just press Enter to
accept a default value, if one is given in brackets).
Enter the root path for documentation.
> Root path for the documentation [.]: /home/ismaelvc/Devel/julia/doc/
Error: an existing conf.py has been found in the selected root path.
@Ismael-VC
Ismael-VC / Calculo_Diferencial_050314.ipynb
Last active August 29, 2015 13:57
Ejemplos y repaso de calculo diferencial.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Ismael-VC
Ismael-VC / julia_doc_es_mx.ipynb
Created March 8, 2014 18:11
Attempt at building a repository to translate Julia.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Ismael-VC
Ismael-VC / pyramid.py
Last active August 29, 2015 13:57
Function that prints an ASCII pyramid, with example, annotations, and module testing.
#!/usr/bin/env python3
# Using python3 annotations and example usage with doctest.testmod:
def pyramid(symbol:str='*', num:int=7) -> None:
"""
Print a pyramid.
>>> pyramid()
*
@Ismael-VC
Ismael-VC / julia_issue
Last active August 29, 2015 13:57
julia issue!
ismaelvc@toybox ~/Devel/julia (git)-[master] % export LC_ALL=C
ismaelvc@toybox ~/Devel/julia (git)-[master] % make clean
make[1]: Entering directory '/home/ismaelvc/Devel/julia/base'
rm -f *# *~
rm -f pcre_h.jl
rm -f errno_h.jl
rm -f build_h.jl
rm -f build_h.jl.phony
rm -f fenv_constants.jl
rm -f uv_constants.jl
@Ismael-VC
Ismael-VC / backtrace_example.py
Created March 14, 2014 20:01
Backtrace example
>>> ERROR! = "Can't do that!"
File "<stdin>", line 1
ERROR! = "Can't do that!"
^
SyntaxError: invalid syntax
@Ismael-VC
Ismael-VC / Probabilidad_140314
Created March 15, 2014 00:12
Apuntes de Probabilidad 14-III-14
{
"metadata": {
"language": "Julia",
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@Ismael-VC
Ismael-VC / Algebra_140314.ipynb
Last active August 29, 2015 13:57
Números complejos con Python.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.