This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var moysklad = require('moysklad-client'); | |
var client = moysklad.createClient(); | |
// Создаем пустой объект отгрузки | |
// использовать ключевое слово new не нужно | |
var demand = client.Demand({ | |
name: '10005' | |
}); | |
demand.TYPE_NAME // -> moysklad.demand |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ecmaFeatures": { | |
"arrowFunctions": true, | |
"binaryLiterals": false, | |
"blockBindings": true, | |
"classes": true, | |
"defaultParams": true, | |
"destructuring": true, | |
"forOf": true, | |
"generators": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sourceMapper = require 'source-map-support' | |
Dot = require '../../../node_modules/grunt-mocha/node_modules/mocha/lib/reporters/dot.js' | |
module.exports = Dot | |
## | |
parseLine = (line) -> | |
[_, file, row] = line.match /file:\/\/\/(.*):(\d*)/ | |
frame = | |
getFileName: -> file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in new iframe | |
var whitelist = { | |
// add whitelisted globals | |
}; | |
var handler = { | |
// Fundamental traps | |
getOwnPropertyDescriptor: function(name) { | |
var desc = Object.getOwnPropertyDescriptor(whitelist, name); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Разложить папки | |
(function () { | |
"use strict" | |
let folderNameRegEx = /([\w\-]+)\s(\d{2}-\d{2}-\d{2})(?:\s(\S+))?/ | |
let toUpdate = [] | |
let newFolders = client.from('goodFolder') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var assign = Object.assign || function (target) { | |
for (var i = 1; i < arguments.length; i++) { | |
var source = arguments[i] | |
for (var key in source) { | |
if (Object.prototype.hasOwnProperty.call(source, key)) { | |
target[key] = source[key] | |
} | |
} | |
} | |
return target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function inspect (bage, val) { | |
console.log(bage + '\n', | |
util.inspect(val, { showHidden: false, depth: 3, colors: true })) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# http://docs.aws.amazon.com/cli/latest/reference/s3/cp.html | |
aws s3 cp /tmp/foo/ s3://bucket/ --recursive --exclude "*" --include "*.jpg" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doGet() { | |
var content = SpreadsheetApp | |
.openById(tableId).getSheetByName(sheetName).getDataRange().getValues() | |
return ContentService.createTextOutput() | |
.setMimeType(ContentService.MimeType.JSON) | |
.setContent(JSON.stringify(content)) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* good-replace | |
* | |
* Copyright (c) 2015, Vitaliy Makeev | |
* Licensed under MIT. | |
*/ | |
'use strict' | |
import csp, { chan, CLOSED } from 'js-csp' |