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 org.apache.commons.codec.binary.Base64; | |
| import java.net.*; | |
| import java.io.*; | |
| /** | |
| * Created by ali on 28.02.2017. | |
| */ | |
| public class KyncMQHttpClient implements Runnable { | |
| String uname = "kync"; |
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 org.apache.activemq.ActiveMQConnectionFactory; | |
| import javax.jms.*; | |
| /** | |
| * Created by ali on 28/02/2017. | |
| */ | |
| public class KyncMQConsumer implements Runnable, ExceptionListener { | |
| String host = "localhost"; | |
| String port = "61616"; |
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
| func freq(topic string, docs []string) int { | |
| var found int | |
| for _, doc := range docs { | |
| file := fmt.Sprintf("%s.xml", doc[:8]) | |
| f, err := os.OpenFile(file, os.O_RDONLY, 0) | |
| if err != nil { | |
| log.Printf("Opening Document [%s] : ERROR : %v", doc, err) | |
| return 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 ( | |
| "database/sql" | |
| "fmt" | |
| "log" | |
| _ "github.com/go-sql-driver/mysql" | |
| ) |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.1/es6-shim.js"></script> | |
| <script src="https://code.jquery.com/jquery-2.1.4.js"></script> | |
| <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> | |
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> |