This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gensim import models | |
sentence = models.doc2vec.LabeledSentence( | |
words=[u'so`bme', u'words', u'here'], tags=["SENT_0"]) | |
sentence1 = models.doc2vec.LabeledSentence( | |
words=[u'here', u'we', u'go'], tags=["SENT_1"]) | |
sentences = [sentence, sentence1] | |
model = models.Doc2Vec(alpha=.025, min_alpha=.025, min_count=1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> current branch foo | |
git branch -m $(git rev-parse --abbrev-ref HEAD)bar | |
> foo branch renamed to foobar | |
where: | |
git branch -m <new_name> # if we want to rename current branch to <new_name> | |
git branch -m <branch_name> <new_name> # renaming <branch_name> to <new_name> | |
git rev-parse --abbrev-ref HEAD # current branch name | |
$(...) # evals what is inside |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import skimage | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from skimage import io | |
from skimage import exposure | |
from skimage.filters import threshold_otsu | |
# image's path | |
current_dir = os.path.dirname(os.path.abspath(__file__)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myPath = "/html/body/div[2]"; | |
console.log(document.evaluate(myPath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue); | |
console.log($x(myPath)[0]); | |
// xpath selectors starts with 1 | |
// using $x will return an array starting with 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src='https://cdn.firebase.com/js/client/2.2.1/firebase.js'></script> | |
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script> | |
</head> | |
<body> | |
<style type="text/css"> | |
#star-six { | |
width: 0; | |
height: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// variables globales | |
String thal = "DEFECTO"; // DEFECTO, NORMAL, REPARACION DETECTADA | |
float edad = 60; | |
int presion_sanguinea = 110; | |
bool angina_inducida = true; | |
bool azucar_en_sangre = true; | |
int max_ratio_cardiaco = 118; | |
int colesterol = 270; | |
void setup() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apartment::Database.switch('alamo') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pp' | |
require 'open-uri' | |
class App | |
def call(env) | |
@env = env | |
path = env["PATH_INFO"].split("/") | |
path.shift if path[0] == "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DPrinter | |
def print | |
puts yield | |
end | |
end | |
class LaserPrinter | |
def print | |
puts yield | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>hestudio</groupId> | |
<artifactId>honorariosEstudio</artifactId> | |
<name>honorariosEstudio</name> | |
<version>0.9</version> | |
<build> | |
<sourceDirectory>src</sourceDirectory> |
NewerOlder