Skip to content

Instantly share code, notes, and snippets.

View linuxenko's full-sized avatar

Svetlana Linuxenko linuxenko

View GitHub Profile
var LANSCAPE_WIDTH = 480
it('should handle portrait screen orientation', () => {
csstate.rule('.pagination', { width: LANSCAPE_WIDTH + 'px' });
expect(document.body.clientWIdth).to.be.below(LANSCAPE_WIDTH);
});
@linuxenko
linuxenko / first-screen.test.js
Last active April 5, 2017 17:22
first screen test medium
var PORTRAIT_WIDTH = 320
it('should handle portrait screen orientation', () => {
csstate.rule('.pagination', { width: PORTRAIT_WIDTH + 'px' });
expect(document.body.clientWIdth).to.be.below(PORTRAIT_WIDTH);
});
beforeEach(() => {
cst.rule(defaultRules); // Load default rules
});
afterEach(() => {
cst.exit(); // Remove entire stylesheet
});
@linuxenko
linuxenko / 1-1000.txt
Created March 8, 2017 08:01 — forked from deekayen/1-1000.txt
1,000 most common US English words
the
of
to
and
a
in
is
it
you
that
var str = 'class ಠ_ಠ extends Array {constructor(j = "a", ...c) {const q = (({u: e}) => {return { [`s${c}`]: Symbol(j) };})({});super(j, q, ...c);}}' +
'new Promise((f) => {const a = function* (){return "\u{20BB7}".match(/./u)[0].length === 2 || true;};for (let vre of a()) {' +
'const [uw, as, he, re] = [new Set(), new WeakSet(), new Map(), new WeakMap()];break;}f(new Proxy({}, {get: (han, h) => h in han ? han[h] ' +
': "42".repeat(0o10)}));}).then(bi => new ಠ_ಠ(bi.rd));';
try {
eval(str);
} catch(e) {
alert('Your browser does not support ES6!')
}
{
"nochar": [
[ 1, 1, 1, 1, 1, 1, 1 ],
[ 1, 1, 0, 0, 0, 1, 1 ],
[ 1, 0, 1, 0, 1, 0, 1 ],
[ 1, 0, 0, 1, 0, 0, 1 ],
[ 1, 0, 1, 0, 1, 0, 1 ],
[ 1, 1, 0, 0, 0, 1, 1 ],
[ 1, 1, 1, 1, 1, 1, 1 ]
],
https://i.imgur.com/3GOp3Hn.jpg
http://i.imgur.com/UmCSIGv.png
http://imgur.com/a/2LK5o
https://raw.githubusercontent.com/papungag/dotfiles/master/awesome/.config/awesome/themes/ergo/wall.jpg
http://i.imgur.com/pTD3Ww4.jpg
http://i.imgur.com/dKiUMLT.jpg
http://i.imgur.com/K9ojNHn.jpg
http://i.imgur.com/x2Zh6eR.png
http://imgur.com/a/E3myU
We couldn’t find that file to show.
@linuxenko
linuxenko / lib.js
Created December 13, 2016 20:54 — forked from juandopazo/lib.js
Function.prototype.extend for simple classes in ES5
Object.getOwnPropertyDescriptors = function getOwnPropertyDescriptors(obj) {
var descriptors = {};
for (var prop in obj) {
if (obj.hasOwnProperty(prop)) {
descriptors[prop] = Object.getOwnPropertyDescriptor(obj, prop);
}
}
return descriptors;
};