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
const removeDigit = (digit, remove) => { | |
let newDigit = `${digit}`; | |
if(newDigit.indexOf(remove) === -1) return digit; | |
let indexes = []; | |
for (let i = 0; i < newDigit.length; i++){ | |
if(newDigit[i] == remove) indexes.push(i); | |
} |
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
const fromTo = (from, to) => { | |
let value = -1; | |
return () => { | |
if((value + 1) === to) return null; | |
value++; | |
return from + value; | |
} | |
} |
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
// преобразовать трёхзначные числа | |
const t = (k, d) => { | |
var e = [ | |
["", " одна", " дві", " три", " чотири", " пʼять", " шість", " сім", " вісім", " девʼять"], | |
[" десять", " одинадцять", " дванадцять", " тринадцять", " чотирнадцять", " пʼятнадцять", " шістнадцять", " сімнадцять", " вісімнадцять", " девяʼятнадцять"], | |
["", "", " двадцять", " тридцять", " сорок", " пʼятдесят", " шестдесят", " семдесят", " вісемдесят", " девʼяносто"], | |
["", " сто", " двісті", " триста", " чотириста", " пʼятьсот", " шістсот", " сімсот", " вісімсот", " девʼятьсот"], | |
["", " одна", " дві"], | |
]; | |
// should be == sign instead of === |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> | |
<style> | |
body{ | |
padding: 0; | |
margin: 0; |
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 myData = [ | |
{ | |
"id": "ABW", | |
"name": "Aruba", | |
"iso": "ABW" | |
}, | |
{ | |
"id": "AFG", | |
"name": "Afghanistan", | |
"iso": "AFG" |
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
npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config --get remote.origin.url | |
npm WARN addRemoteGit | |
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:206:12) | |
npm WARN addRemoteGit at emitTwo (events.js:106:13) | |
npm WARN addRemoteGit at ChildProcess.emit (events.js:191:7) | |
npm WARN addRemoteGit at maybeClose (internal/child_process.js:852:16) | |
npm WARN addRemoteGit at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5) | |
npm WARN addRemoteGit git+ssh://[email protected]/WarnerMusicGroup/factory-cf-client.git#development resetting remote C:\Users\arozanov\AppData\Roaming\npm-cache\_git-remotes\git-ssh-git-github-com-WarnerMusicGroup-factory-cf-client-git-development-2a1aac7d because of error: { Error: Command failed: git -c core.longpaths=true config --get remote.origin.url | |
npm WARN addRemoteGit | |
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:206:12) |
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
[ | |
{ | |
"id": 1, | |
"name": "root" | |
}, | |
{ | |
"id": 2, | |
"parentId": 1, | |
"name": "chemistry" |
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
return cloudinary.v2.uploader.upload( fullPathToFile, { | |
folder: folderName+'/'+customer+'/', | |
public_id: res.picName, | |
resource_type: "raw" | |
}, function(error, result){ | |
error ? console.log(error):''; | |
urll = result.url; | |
console.log(urll); | |
return res |
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
{ | |
"card":{ | |
"description":"TD-TR-03", | |
"name":"T5/T6- Weekly Trading Report - exc VAT Last Week", | |
"subType":"table", | |
"rangeName":"prevWeek", | |
"selectedTotals":[ | |
], | |
"type":"table", |
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
{ | |
"data":{ | |
"results":[ | |
[ | |
"[\"Holkham Head Office\"]", | |
0.0, | |
0.0, | |
299.5592307692308, | |
0.0, | |
0.0 |
NewerOlder