Skip to content

Instantly share code, notes, and snippets.

View sanbor's full-sized avatar
💭
I may be slow to respond.

Santiago Borrazás sanbor

💭
I may be slow to respond.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sanbor on github.
  • I am borrazas (https://keybase.io/borrazas) on keybase.
  • I have a public key ASDAOUvQVZ73CxV6STfGp6oEg3M19sqJRa2Ohi8VcWOEbAo

To claim this, I am signing this object:

# Example from http://jakevdp.github.io/blog/2013/06/01/ipython-notebook-javascript-python-communication/ adapted for IPython 2.0
# Add an input form similar to what we saw above
from IPython.display import HTML
from math import pi, sin
input_form = """
<div style="background-color:gainsboro; border:solid black; width:600px; padding:20px;">
Code: <input type="text" id="code_input" size="50" height="2" value="sin(pi / 2)"><br>
Result: <input type="text" id="result_output" size="50" value="1.0"><br>
@sanbor
sanbor / gist:8246094
Created January 3, 2014 20:35
Phones are the worst.

Glass kind of made me hate my phone — or any phone. It made me realize how much they have captured our attention. Phones separate us from our lives in all sorts of ways. Here we are together, looking at little screens, interacting (at best) with people who aren’t here. Looking at our hands instead of each other. Documenting instead of experiencing.

extracted from http://www.wired.com/gadgetlab/2013/12/glasshole/all/1

@sanbor
sanbor / gist:6802757
Created October 3, 2013 00:34
Working on a way to solve my computing needs

Scenario

  • 1 tb external HD
  • 1 linux server with > 1 tb of storage
  • ? number of computers

Instructions

  • Plug my external HD to a computer where I have docker configured.
  • Load my VM with docker from my external HD
@sanbor
sanbor / gist:5247714
Last active December 15, 2015 10:39
Pro/cons Emacs
Pro Emacs
- lightweight
- extremily versatile/customizable
- multiplatform
- works in text mode
- free/open source
- well documented
- +36 years of development
@sanbor
sanbor / reglas-espanol.md
Last active December 12, 2015 04:48
Reglas ortográficas del Español

Diptongos

  1. Las vocales a, e, o se denominan abiertas (o fuertes).

  2. Las vocales i, u se denominan cerradas (o débiles).

  • Dos vocales abiertas pertenecen a dos sílabas distintas: lí-ne-a, ve-o.

  • Una vocal abierta y una cerrada forman una sóla sílaba, y la vocal abierta es la que se pronuncia con más fuerza y se acentúa si hay que hacerlo según las reglas generales: pen-sáis, hia-to.

@sanbor
sanbor / dabblet.html
Created October 22, 2012 19:13
Untitled
<table>
<thead>
<tr>
<td>nothinge</td>
</tr>
</thead>
</table>
@sanbor
sanbor / gist:3774192
Created September 24, 2012 04:31
Linux capsule
#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------
# For more information about tint2, see:
# http://code.google.com/p/tint2/wiki/Welcome
#
# For more config file examples, see:
# http://crunchbanglinux.org/forums/topic/3232/my-tint2-config/
# Background definitions