View IWebClient.java
package me.edrone.common.helpers;
import java.io.IOException;
public interface IWebClient {
public byte[] get(String url) throws IOException;
public byte[] head(String url) throws IOException;
View testcafe.js
import {
Selector
} from 'testcafe';
// fixture `Edrone`
// .page `https://control.edrone.me/login`;
// test('Login test', async t => {
// await t
// .typeText('#_username', 'k.swieca1@gmail.com')
View YDKJS ES6 CH6.js
// Array.of
var a = Array.of(1,2,3,4,5)
a
console.log(a.length)
// kiedy przydatne?
//1 callback - dość rzadki case
View CH2_Destructing.js
// przypomnionko
var a1 = [ 1, [2, 3, 4], 5 ];
var o1 = { x: { y: { z: 6 } } };
a1
o1 /*?*/
var [ a, [ b, c, d ], e ] = a1;
var { x: { y: { z: w } } } = o1;
View gist:2be4457334a0e742fdd38ae8b3a5ce77
function permAlone(str) {
//allow swap
Array.prototype.swap = function (x,y) {
var b = this[x];
this[x] = this[y];
this[y] = b;
return this;