Skip to content

Instantly share code, notes, and snippets.

View balkian's full-sized avatar
馃彔
Working from home

J. Fernando S谩nchez balkian

馃彔
Working from home
View GitHub Profile
@balkian
balkian / id_rsa.pub
Created July 30, 2014 08:22
SSH Demos
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZM2cshLida17Ay7EZW6jB9x3jkczT3QF7XJThPmruhv3E3V50mcT6oXf7eunks1XOJtBBJfxYnB93aGt/FJ/f8n44PF6uL+cuj8L9G1tbcIJXUY4HXDN/ewLN/yJqjqax9Sf/d/RV6i3AC+lD8neUsEk7xTzDNaygv+nz40vZ52aHda5AS1hh7XsVQ8SG/2tLvOGSzLT5bhOxqEBVt1CdaBM9dPZhNG8QnMUgEajywFP8OY13q6+boPGpHe2qBKAmIvN6J2uLhcQ6tIt6ODRGyklNY6B8Cagmf0/tCNg/RfzMAWMLFl1NBn3YCszDj/BR32Nw2pSaBzKdAsIyvmfd [email protected]
module raspi(){
import("B+_Model_v4.stl", convexity=3);
}
shell = 1.5;
width = 86;
length = 56;
height = 10;
bottom = 2;
round = 1.5;

Las dependencias son:

pip install fake-factory selenium
@balkian
balkian / modules
Created November 7, 2014 14:55
Modules for TFT 3.2 Raspberry Pi
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
snd-bcm2835
i2c-bcm2708
i2c-dev
fbtft_device name=flexfb gpios=dc:22,reset:27 speed=48000000
@balkian
balkian / ontology.sh
Last active October 30, 2021 10:58
Upload ontologies to GSI server
if [ $# -lt 1 ]
then
ONTO=onyx
else
ONTO=$1
fi
if [ $# -lt 2 ]
then
DIR=~/Doctorado/Ontologies/Onyx
else
@balkian
balkian / upload.sh
Created January 14, 2015 10:36
Fuseki commands
curl http://alpha.gsi.dit.upm.es:3030/onyx/upload -F 'UNSET FILE [email protected];type=application/rdf+xml' -F 'graph=http://example.com/prueba'
"""
Usage: python remove_output.py notebook.ipynb [ > without_output.ipynb ]
Modified from remove_output by Minrk
"""
import sys
import io
import os
from IPython.nbformat.current import read, write
@balkian
balkian / coding.py
Last active August 29, 2015 14:16
Flask server that returns GET parameters and values
a = u"codificaci贸n"
print a # u"codificaci贸n"
print type(a) # <type 'unicode'>
b = a.encode("utf-8")
print b # codificaci贸n # But it depends on your terminal settings
print type(b) # <type 'str'>
c = b.decode("utf-8")
print type(c) # <type 'unicode'>
print c # u"codificaci贸n"
@balkian
balkian / Git magic.md
Last active August 29, 2015 14:16
Useful commands for git

#GIT MAGIC

Create a submodule from a specific folder

git clone <your_project> <your_submodule>
cd <your_submodule>
git filter-branch --subdirectory-filter 'path/to/your/submodule' --prune-empty -- --all

Remove a file from history

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.