Skip to content

Instantly share code, notes, and snippets.

View kommradHomer's full-sized avatar

kommrad homer kommradHomer

View GitHub Profile
@kommradHomer
kommradHomer / ign-server-conf.xml
Created August 14, 2020 22:45
ignite server onconf
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
import java.time.Duration;
import java.util.Arrays;
import java.util.Optional;
import java.util.logging.Logger;
import org.apache.ignite.Ignite;
import org.apache.ignite.IgniteCache;
import org.apache.ignite.Ignition;
import org.apache.ignite.configuration.IgniteConfiguration;
import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi;
import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder;
@kommradHomer
kommradHomer / mongodump-on-java.java
Created November 9, 2020 20:27
mongodump on java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.ygt.deneme.gister;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
@kommradHomer
kommradHomer / not-important.java
Last active November 18, 2020 21:00
previous midnight timezones
package com.koomho.datetime_test;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Arrays;
import java.util.Date;
import fasttext
import gensim
import torch
fasttext.load_model("path/to/model/wiki-news-300d-1M.vec")
.
.
## OUT >>
## OUT >> ValueError: path/to/embedding/wiki-news-300d-1M.vec has wrong file format!
## OUT >>