Skip to content

Instantly share code, notes, and snippets.

View ColadaFF's full-sized avatar

Cristian Barrientos Montoya ColadaFF

  • Colombia, Medellín
View GitHub Profile
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.*;
import org.apache.lucene.index.FieldInfo;
import org.apache.lucene.index.IndexWriter;
import org.apache.lucene.index.IndexWriterConfig;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;
import org.apache.lucene.util.Version;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
{
"cdRule": 1223,
"process": [
{
"cdStatus": 1233,
"cdRedModel": 6674
},
{
}
"use strict";
var mongoose = require('mongoose'),
_ = require('lodash'),
async = require('async'),
Schema = mongoose.Schema,
ObjectId = Schema.ObjectId,
cartografiaSchema = mongoose.Schema({
_id: {
type: String
<md-list>
<md-list-item ng-click="vm.toggleSideNav('left-nav')">
<div md-ink-ripple layout="row" layout-align="start center" ui-sref="companies">
<div class="inset">
<md-icon md-svg-icon="business" style="color: gray;"></md-icon>
</div>
<div class="inset">Empresas</div>
</div>
</md-list-item>
<md-list-item ng-click="vm.toggleSideNav('left-nav')">
{
"description": "String",
"alias": "String",
"options": [
{
"name": "String"
},
...
]
}
import java.io.InputStreamReader;
import java.util.Random;
import java.util.Scanner;
public class Gimnasio {
static class Cliente {
String nombre;
double peso; // Kg
double estatura; // cm
Double IMC;
@ColadaFF
ColadaFF / RuleMessage.avsc
Created March 7, 2016 22:01
Kafka, avro and python!!
{
"namespace": "Rule",
"type": "record",
"name": "RuleMessage",
"fields": [
{
"name": "station",
"type": "string"
},
{
import java.io.InputStreamReader;
import java.util.Scanner;
public class StudentExample {
public static void main(String[] args) {
Scanner sc = new Scanner(new InputStreamReader(System.in));
System.out.print("Type your name: ");
String name = sc.nextLine();
import java.util.Scanner;
public class Student {
final static double PERCENTASIIGNMENT1 = 0.1;
final static double PERCENTASIIGNMENT2 = 0.13;
final static double PERCENTASIIGNMENT3 = 0.17;
final static double PERCENTEXAM1 = 0.2;
final static double PERCENTEXAM2 = 0.2;
final static double PERCENTPPI = 0.2;
import React, {Component} from 'react';
const headers = [
{
title: "x"
},
{
title: "y"
}
];