Skip to content

Instantly share code, notes, and snippets.

View dangnhdev's full-sized avatar

Nguyễn Hải Đăng dangnhdev

  • Hanoi, Vietnam
View GitHub Profile
#include<stdio.h>
#include<conio.h>
#include <string.h>
struct hssv
{
char hoten[50];
char lop[10];
int mssv;
int dtk;
};
import com.rabbitmq.client.*;
public class Publisher {
private static final String EXCHANGE_NAME = "topic_test";
public static void main(String[] argv) throws Exception {
ConnectionFactory factory = new ConnectionFactory();
factory.setHost("localhost");
import com.rabbitmq.client.*;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
public class Subscriber {
private static final String EXCHANGE_NAME = "topic_test";
private static final String queueName = "Foo Queue";
public static void main(String[] argv) throws Exception {
import com.rabbitmq.client.*;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
public class Subcriber {
private static final String EXCHANGE_NAME = "topic_test";
private static final String queueName = "Foo Queue";
public static void main(String[] argv) throws Exception {
{
"roadId":123456,
"time":142423578,
"event":[
{
"roadId":123456,
"type":1,
"street":"Láng",
"info":"Tắc đường từ sáng đến tối",
"date":"142423512"
{
"time":142423512,
"up":[
{
"sectionId":123,
"sectionName":"Lào - Lào cai",
"travelTime":15,
"situation":"Ngon"
},
{
{
"roadId":123456,
"time":142423578,
"streetEvents":[
{
"id":12313,
"type":1,
"level":3,
"startLocation":12,
"endLocation":20
{
"roadId":123456,
"time":142423578,
"cameras":[
{
"id":11100063,
"type":"CCTV 1",
"name":"camera ql1 km 20",
"location":20.2,
"link":"rtsp://192.168.7.70:534/11100063"
/*
* Distributed as part of c3p0 v.0.9.5.2
*
* Copyright (C) 2015 Machinery For Change, Inc.
*
* Author: Steve Waldman <[email protected]>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of EITHER:
*
<?xml version="1.0" encoding="UTF-8"?>
<rmq-config>
<connection>
<host>localhost</host>
<port>5672</port>
<username>guest</username>
<password>guest</password>
<retry-policy>