Skip to content

Instantly share code, notes, and snippets.

View KEMBL's full-sized avatar
🚀
per code ad astra!

Dmitrii KEMBL

🚀
per code ad astra!
View GitHub Profile
@KEMBL
KEMBL / shop.product.features.getInfo.method.php
Last active May 22, 2021 07:49
API method for retrieving Product and SKU features. For Webasyst Shop-script
<?php
/**
*
* API method for retrieving Product and SKU features
*
* Autor: https://github.com/KEMBL
*
* License: MIT
*
* Version: 1.0.0 alpha
/**
* Metro configuration for React Native
*
* @format
*/
const fs = require('fs');
const path = require('path');
const config = {
projectRoot: path.resolve(__dirname),
@KEMBL
KEMBL / argumetscheck.cs
Last active August 23, 2017 15:26
How arguments could be checked
// ORIGINAL
public async Task UploadBlobFromFile(string filePath, string containerName, string destinationPath)
{
if (!File.Exists(filePath))
{
throw new FileNotFoundException(filePath);
}
CloudBlobContainer container = await GetBlobContainer(containerName);