Skip to content

Instantly share code, notes, and snippets.

Can Kemik cankemik

Block or report user

Report or block cankemik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View rabbitQListener.cs
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
View WS_CrashReporter.vbs
Option Explicit
Dim objXmlHttpMain,URL,Title,FromLine,ToLine,fso,Readfile,strBuff,InputFile,TotalNbLines,strJSONToSend, emailObj, emailConfig
Title = "DataSender Crash Reporter"
Public Function CrashReportFromLogFile
InputFile = "c:\Program Files\Lely\T4C\CDS\Datasender\Trace\DataSenderService.trace.log"
Set fso = CreateObject("Scripting.FileSystemObject")
View bonesta_lang
$translateProvider.translations('tr', {
header: {
new_products: 'EN YENİLER',
shop: 'SHOP',
lookbook: 'LOOKBOOK',
about: 'HAKKIMIZDA',
commercial: 'KURUMSAL',
contact: 'BİZE ULAŞIN',
auth: 'GİRİŞ / ÜYE OL',
View hepsiexpress_apply_form.json
directive: 'simple-input',
settings: {
id: 'name',
label: 'AD',
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"}'

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

Basic JSON POST Example:

View yearDividedInWeeks.js
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 {
date: new Date(new Date().getFullYear(), 0, i),
View euromessage.js
import xml2js from 'xml2js';
import soap from 'soap';
import js2xmlparser from 'js2xmlparser';
import Future from 'fibers/future';
addToList: function () {
let envelope = {
'DemograficData': [
'EmKeyValue': {
cankemik / js merge arrays
Last active Aug 29, 2015
js merge arrays
View 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]
You can’t perform that action at this time.