This file contains 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
TG9yZW0gaXBzdW0gcHVydXMgYXB0ZW50IHZpdGFlIHNjZWxlcmlzcXVlIGVzdCBmcmluZ2lsbGEsIGFjIGR1aXMgdnVscHV0YXRlIHF1aXNxdWUgaGFjIGZlcm1lbnR1bSBsaXRvcmEsIHZlaGljdWxhIGV0aWFtIG1hc3NhIHBsYWNlcmF0IGF1Z3VlIHB1cnVzLgoKUHJvaW4gZXUgb3JjaSBmYXVjaWJ1cyBudWxsYW0gbm9zdHJhIHBoYXNlbGx1cyBsaWJlcm8gY3VyYWUgY29uc2VjdGV0dXIgaGFjIHN1c2NpcGl0IG1hZ25hLCBuaXNpIGRhcGlidXMgZWdlc3RhcyBhdWN0b3IgbGl0b3JhIHZ1bHB1dGF0ZSBub3N0cmEgcHJpbWlzIGNvbmRpbWVudHVtIHZpdGFlIHBsYWNlcmF0LgoKRG9sb3IgZG9uZWMgbmlzbCBoaW1lbmFlb3MgcHJhZXNlbnQgZWxlaWZlbmQgcGxhY2VyYXQgbGliZXJvIGRvbG9yLCBwb3J0dGl0b3IgZXJhdCBlZ2VzdGFzIGJsYW5kaXQgZmVsaXMgbmVjIHBvdGVudGkgYXQgdHVycGlzLCBoYWJpdGFzc2UgZW5pbSB0ZWxsdXMgaGltZW5hZW9zIGNvbW1vZG8gZXJvcyBwaGFyZXRyYSBtYXR0aXMgY29udWJpYSBhbWV0IGN1cmFlIGRhcGlidXMgZWxpdCBhbGlxdWFtIGZhbWVzIHZlaGljdWxhLCBsb3JlbSB0b3JxdWVudCBzYWdpdHRpcyBlcm9zIHZlc3RpYnVsdW0gb3JjaSBlZ2VzdGFzIGVnZXQgbGVjdHVzLCBtYWduYSBjdXJzdXMgdG9ydG9yIHZlbCBtYXVyaXMgaW50ZWdlciBuaXNpIHBvcnRhIHZpdmFtdXMgZW5pbSB2ZWxpdCBhZGlwaXNjaW5nIHBlbGxlbnRlc3F1ZSwgdGluY2lkdW50IGNvbmRpbWVudHVtIGZlbGlzIHVsdHJp |
This file contains 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
let i = 0; | |
const total = 12; | |
for (; i < total;) { | |
doWhatever(); | |
i++; | |
} |
This file contains 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
// INPUT XML | |
const xml = | |
`<Person> | |
<FirstName>John</FirstName> | |
<LastName>Smith</LastName> | |
<Contact> | |
<Address> | |
<Street>1000 East St</Street> | |
<City>Atlanta</City> | |
<Zip>30330</Zip> |
This file contains 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 makeBinary() { | |
var str = ''; | |
// get input from form field | |
var input = +document.getElementById('number').value; | |
// try subtracting every place in a 32-bit integer | |
for (var i = 32; i > -1; i--) { | |
var raised = Math.pow(2,i); | |
if (input - raised > -1) { | |
str += '1'; | |
input -= raised; |
This file contains 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
Running with gitlab-ci-multi-runner 9.1.0 (0118d89) | |
on Prod Snapshot Builds 1 (c9648220) | |
Using Shell executor... | |
Running on ip-10-2-92-21... | |
Cloning repository... | |
Cloning into '/home/gitlab-runner/builds/c9648220/0/project-1'... | |
Checking out 57f3a947 as master... | |
Skipping Git submodules setup | |
$ fetch-updates | |
Checking for build process updates... |