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 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 >> |
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
| 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; |
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
| /* | |
| * 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; |
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 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; |
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
| <?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 |
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
| Bson a=Aggregates.match( new Document("year", 5)); | |
| BucketOptions o=new BucketOptions(); | |
| o.output( | |
| new BsonField("student_ids", new Document("$push","$student_id")), | |
| new BsonField("attended_class",new Document("$sum", | |
| new Document("$cond", | |
| Arrays.asList( | |
| new Document("$gte",Arrays.asList("$attn",8)), |
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
| BucketOptions o=new BucketOptions(); | |
| o.output( | |
| new BsonField("student_ids", new Document("$push","$student_id")), | |
| new BsonField("attended_class",new Document("$sum", | |
| new Document("$cond", | |
| Arrays.asList( | |
| new Document("$gte",Arrays.asList("$attn",8)), | |
| 1, | |
| 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
| package main | |
| import ( | |
| "fmt" | |
| "strconv" | |
| ) | |
| func main() { | |
| num1 := "9879879879879879879879879879879879879879879879879879879879879879879879879879879875463473583567398798798798798798734526456367456745674999234582345898923845234523452345234523452989986001020012345678912398798798798798798798798798798798798798798798798798798798798798798798798798798798754634735835673987987987987987987345264563674567456749992345823458989238452345234523452345234529899860010200123456789123987987987987987987987987987987987987987987987987987987987987987987987987987987987546347358356739879879879879879873452645636745674567499923458234589892384523452345234523452345298998600102001234567891239879879879879879879879879879879879879879879879879879879879879879879879879879879875463473583567398798798798798798734526456367456745674999234582345898923845234523452345234523452989986001020012345678912398798798798798798798798798798798798798798798798798798798798798798798798798798798754634735835673987987987987987987345264563674567456749992345823458989238452 |
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
| ssh my-ssh-user@ip.to.my.server.com -L <ANY_AVAILABLE_PORT_YOU_FANCY>:127.0.0.1:39017 -N |
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
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| ) | |
| func main() { |
NewerOlder