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
Done in 341.94s. | |
real 5m42.499s | |
user 11m44.867s | |
sys 3m20.832s |
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
node_modules/ |
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
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
'use strict'; | |
require('es5-shim'); | |
require('es5-shim/es5-sham'); | |
require('es6-shim'); | |
// Array#includes is stage 4, in ES7/ES2016 | |
require('array-includes/shim')(); |
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
'use strict'; | |
/** | |
* node --harmony-async-await --trace-opt --trace-deopt test.js | grep 'disabled' | |
*/ | |
const REJECT_PROBABILITY = 5 / 10000; | |
const resolveAfterTimeout = (timeout) => { | |
return new Promise((resolve, reject) => { |
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 fs = require('fs'); | |
const http = require('http'); | |
const hostname = '127.0.0.1'; | |
const port = 3000; | |
const respondWithHTML = res => { | |
res.statusCode = 200; | |
res.setHeader('Content-Type', 'text/html'); | |
res.end(` |
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
'use strict'; | |
let gulp = require('gulp'); | |
let concat = require('gulp-concat'); | |
let bemDepsOrder = require('gulp-order-bemdeps'); | |
let sass = require('gulp-sass'); | |
gulp.task('css', () => { | |
gulp | |
.src([ |
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
// app/components/button/button.deps.js | |
({ | |
mustDeps: [ | |
{block: 'variables'} | |
] | |
}) |
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
'use strict'; | |
let gulp = require('gulp'); | |
let concat = require('gulp-concat'); | |
let sass = require('gulp-sass'); | |
gulp.task('css', () => { | |
gulp | |
.src([ | |
'app/components/globals/globals.scss', |
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
// @see https://github.com/1999/sklad/blob/master/docs/README_skladConnection_clear.md | |
const dbName = `dbName_${Date.now()}`; | |
const conn = await sklad.open(dbName, { | |
version: 2, | |
migration: { | |
'1': (database) => { | |
// This migration part starts when your code runs first time in the browser. | |
// This is a migration from "didn't exist" to "1" database version | |
const objStore = database.createObjectStore('users', {autoIncrement: true}); |
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
#!/usr/bin/env python3 | |
# | |
# Usage: | |
# resizer.py DIRECTORY_WITH_PHOTOS MAX_WIDTH_HEIGHT | |
# | |
# Example: | |
# resizer.py ~/Dropbox/Camera\ Uploads 2048 | |
import os | |
import sys |
NewerOlder