Skip to content

Instantly share code, notes, and snippets.

using RabbitMQ.Client;
using RabbitMQ.Client.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace rabbitMQTest
{
Option Explicit
Dim objXmlHttpMain,URL,Title,FromLine,ToLine,fso,Readfile,strBuff,InputFile,TotalNbLines,strJSONToSend, emailObj, emailConfig
Title = "DataSender Crash Reporter"
SendCrashReportMail()
Public Function CrashReportFromLogFile
InputFile = "c:\Program Files\Lely\T4C\CDS\Datasender\Trace\DataSenderService.trace.log"
Set fso = CreateObject("Scripting.FileSystemObject")
$translateProvider.translations('tr', {
header: {
new_products: 'EN YENİLER',
shop: 'SHOP',
lookbook: 'LOOKBOOK',
stores: 'SATIŞ NOKTALARIMIZ',
about: 'HAKKIMIZDA',
commercial: 'KURUMSAL',
contact: 'BİZE ULAŞIN',
auth: 'GİRİŞ / ÜYE OL',
[
{
directive: 'simple-input',
settings: {
id: 'name',
label: 'AD',
error: 'BU ALANIN DOLDURULMASI ZORUNLUDUR',
validation: 3,
placeholder: 'İSMİNİZİ GİRİNİZ',
type: 'text',

curl --user hepsiexpress:561f48031fe9c0fc75c87bc8939be7e5 -i -X POST -H "Content-Type: application/json" -d '{"city":"AFYONKARAHİSAR"}' https://re-cms.com/api/hepsiexpress

Hepsiexpress Applicant Form RESTful API

Works with cURL Basic Authentication. Only accepted HTTP method is POST and the POST request's content type should be JSON.

Auth Example

curl --user username:password https://re-cms.com/api/hepsiexpress

Basic JSON POST Example:

@cankemik
cankemik / yearDividedInWeeks.js
Created January 27, 2017 11:42
Year Divided in Weeks
let weeks = {};
for (var i = 1; i < 366; i++) {
if (((i - 1) % 7) == 0) {
weeks[Object.keys(weeks).length + 1] = {dates: [{
date: new Date(new Date().getFullYear(), 0, i),
current: (new Date(new Date().getFullYear(), 0, i).getDate() == new Date().getDate() && new Date(new Date().getFullYear(), 0, i).getMonth() == new Date().getMonth())
}]}
} else {
weeks[Object.keys(weeks).length].dates.push({
date: new Date(new Date().getFullYear(), 0, i),
import xml2js from 'xml2js';
import soap from 'soap';
import js2xmlparser from 'js2xmlparser';
import Future from 'fibers/future';
Meteor.methods({
addToList: function () {
let envelope = {
'DemograficData': [
{
'EmKeyValue': {
@cankemik
cankemik / js merge arrays
Last active August 29, 2015 14:24
js merge arrays
var array1 = [1, 2, 3];
var array2 = [4, 5, 6];
Array.prototype.push.apply(array1, array2);
console.log(array1); // is: [1, 2, 3, 4, 5, 6]