Skip to content

Instantly share code, notes, and snippets.

View alexpts's full-sized avatar
🤘
enjoying

Alex Pavlov alexpts

🤘
enjoying
  • AvitoTech
View GitHub Profile
export default () => {
return {
component: new Promise((resolve, reject) => {
setTimeout(() => {
reject(new Error('Can`t create component'));
resolve({
template: "<div>1234444</div>",
name: 'appMain2',
});
}, 100);
@alexpts
alexpts / config.json
Last active January 14, 2017 08:29 — forked from anonymous/config.json
Bootstrap avto
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "#3B72B1",
"@brand-success": "#5cb85c",
#### GET /penza/users
{
"data": {
"userIds": [1, 2, 3, 4, 5]
},
"status": 200
}
#### POST /penza/users
Добавить пользователя в комнату
@alexpts
alexpts / popover.js
Last active August 16, 2016 18:28
Example js module 2
(function ($, $popover) {
/**
* @param {{}|undefined}options
* @returns {{on: Function, off: Function}}
* @constructor
*/
var Popover = function (options) {
options = $.extend({
delegateElement: document,
@alexpts
alexpts / content.play-mp4.js
Created May 23, 2016 05:34
Example jquery module
(function ($) {
var $document = $(document);
var PlayMp4 = function () {
/**
* @param {Event} event
* @private
*/
@alexpts
alexpts / gist:7eee6dc4bb878ec7ae00
Last active March 18, 2016 08:43
Nodejs local benchmark
version : scores
5.9.0 : 28563
5.8.0 : 28097
4.4.0 : 27546
0.12.12 : 23033
---------------
** Node 5.9
node version : v5.9.0