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"?> | |
<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> |
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
@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() |
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
{ | |
"order": 0, | |
"template": "meteor", | |
"settings": { | |
"index": { "number_of_shards": "1" } | |
}, | |
"mappings": { | |
"Variable": { | |
"_source": { "enabled": true }, | |
"properties": { |
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
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'), |
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
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'), |
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
# 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 '[email protected]/user/plugin' | |
# set -g @plugin '[email protected]/user/plugin' |
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
'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'; |
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
func1 func 2 c, d, b |
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
func1 func2 (c, d), b |
NewerOlder