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
@cankemik
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]
View euromessage.js
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': {
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 {
weeks[Object.keys(weeks).length].dates.push({
date: new Date(new Date().getFullYear(), 0, i),
View hepsiexpress_apply_form.json
[
{
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',
View hepsiexpress.md

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:

View bonesta_lang
$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',
View WS_CrashReporter.vbs
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")
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
{
You can’t perform that action at this time.