Skip to content

Instantly share code, notes, and snippets.

View bubuzzz's full-sized avatar
🎯
Focusing

Thai Tran bubuzzz

🎯
Focusing
  • Melbourne, Australia
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<TOPUP_RESPONSE><TRAN_ID></TRAN_ID><PROVIDER_RETURN_CODE>190023</PROVIDER_RETURN_CODE><CPG_TRAN_ID>Default</CPG_TRAN_ID><trans_id></trans_id><cpgtransid></cpgtransid><cust_no></cust_no><amount></amount><rsp_code>190023</rsp_code><rsp_desc>System error</rsp_desc><curr_balance></curr_balance><eCash_serial></eCash_serial><eCash_pin></eCash_pin><eCash_expdate></eCash_expdate><ref1></ref1><ref2></ref2></TOPUP_RESPONSE>
@receiver(post_save, sender=Feedback)
def post_save_feedback(sender, instance, *args, **kwargs):
params = {'user': instance.user, 'title': instance.title, 'content': instance.content}
subject = "There is a feedback from the app"
message_plain = render_to_string('%s/feedback/feedback.txt' % EMAIL_ROOT, params)
message_html = render_to_string('%s/feedback/feedback.html' % EMAIL_ROOT, params)
send_mail = SendMail(to=settings.ADMIN_CC_LIST, subject=subject,
message_plain=message_plain, message_html=message_html)
send_mail.start()
{
"template": "meteor",
"settings": {
"index": {
"creation_date": "1466141139185",
"analysis": {
"analyzer": {
"case_insensitive": {
"filter": ["lowercase"],
"type": "custom",
{
"order": 0,
"template": "meteor",
"settings": {
"index": { "number_of_shards": "1" }
},
"mappings": {
"Variable": {
"_source": { "enabled": true },
"properties": {
var AMQPClient = require('amqp10').Client;
var Promise = require('bluebird');
var Policy = require('amqp10').Policy;
var client = new AMQPClient(Policy.ActiveMQ); // Uses PolicyBase default policy
var url = "amqp://admin:admin@Thais-MBP:5672";
client.connect(url).then(function() {
return Promise.all([
client.createReceiver('topic://amq.topic'),
var AMQPClient = require('amqp10').Client;
var Promise = require('bluebird');
var Policy = require('amqp10').Policy;
var client = new AMQPClient(Policy.ActiveMQ); // Uses PolicyBase default policy
var url = "amqp://admin:admin@Thais-MBP:5672";
client.connect(url).then(function() {
return Promise.all([
client.createReceiver('topic://amq.topic'),
# List of plugins
set -g @plugin 'tmux-plugins/tmux-sidebar'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'
'use strict';
import util from 'util';
import winston from 'winston';
import path from 'path';
import { Meteor } from 'meteor/meteor';
winston.transports.DailyRotateFile = require('winston-daily-rotate-file');
let production = (process.env.NODE_ENV || '').toLowerCase() === 'production';
func1 func 2 c, d, b
func1 func2 (c, d), b