Skip to content

Instantly share code, notes, and snippets.

View IrakliDevelop's full-sized avatar
💭
[object Object]

Irakli Iremashvili IrakliDevelop

💭
[object Object]
View GitHub Profile
@IrakliDevelop
IrakliDevelop / throttle.js
Created September 5, 2019 06:14
throttling function example
const throttle = (func, limit) => {
let inThrottle;
return function () {
const args = arguments;
const context = this;
if (!inThrottle) {
func.apply(context, args);
inThrottle = true;
setTimeout(() => inThrottle = false, limit)
}
@IrakliDevelop
IrakliDevelop / index.js
Created August 15, 2019 12:01
making soap request with node.js
const fs = require('fs');
const parser = require('fast-xml-parser');
const soapRequest = require('./soap');
const url = ''; // your SOAP service url
const headers = {
'Content-Type': 'text/xml;charset=UTF-8',
'soapAction': '', // SOAP Action url, if needed
@IrakliDevelop
IrakliDevelop / index.html
Last active February 7, 2019 18:26
version 2
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
<meta charset="utf-8">
@IrakliDevelop
IrakliDevelop / CMakeLists.txt
Created January 20, 2019 14:25
CMake setup file
cmake_minimum_required (VERSION 3.5)
project (HelloWorld1)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -std=c++14")
set (source_dir "${PROJECT_SOURCE_DIR}/src/")
file (GLOB source_files "${source_dir}/*.cpp")
add_executable (HelloWorld1 ${source_files})
@IrakliDevelop
IrakliDevelop / index.html
Last active January 8, 2019 11:57
Upload Image and Display with Vanilla JS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>