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
'use strict' | |
require('./backend/extensions') | |
let gulp = require('gulp'), | |
argv = require('yargs').argv, | |
del = require('del'), | |
$ = require('gulp-load-plugins')(), | |
spawn = require('child_process').spawn, | |
os = require('os'), |
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
// 44: Map - basics | |
// To do: make all tests pass, leave the assert lines unchanged! | |
describe('`Map` is a key/value map', function(){ | |
it('`Map` is a new global constructor function', function() { | |
assert.equal(typeof Map, 'function'); | |
}); | |
it('provides `new Map().set()` to add key+value pair, `get()` to read it by key', function() { |
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
// 51: Generator - Yield Expressions | |
// To do: make all tests pass, leave the assert lines unchanged! | |
describe('generator - `yield` is used to pause and resume a generator function', () => { | |
function* generatorFunction() { | |
yield 'hello'; | |
yield 'world'; | |
} |
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
#!/bin/bash | |
# | |
NGINX_VERSION=1.6.1 | |
PCRE_VERSION=8.35 | |
#original openssl 1.0.1e | |
OPENSSL_VERSION=1.0.1i | |
rm -rf "$NGINX_VERSION" download var | |
nginx_tarball_url=http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz | |
#pcre_tarball_url=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-${PCRE_VERSION}.tar.bz2 |
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
12-28 15:19:33.877 3030 3046 W EGL_emulation: eglSurfaceAttrib not implemented | |
12-28 15:19:33.877 3030 3046 W OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xabe7f080, error=EGL_SUCCESS | |
12-28 15:19:33.900 3030 3030 D AndroidRuntime: Shutting down VM | |
12-28 15:19:33.900 3030 3030 E AndroidRuntime: FATAL EXCEPTION: main | |
12-28 15:19:33.900 3030 3030 E AndroidRuntime: Process: com.awesomeproject, PID: 3030 | |
12-28 15:19:33.900 3030 3030 E AndroidRuntime: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@f3a4ac8 -- permission denied for this window type | |
12-28 15:19:33.900 3030 3030 E AndroidRuntime: at android.view.ViewRootImpl.setView(ViewRootImpl.java:591) | |
12-28 15:19:33.900 3030 3030 E AndroidRuntime: at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:310) | |
12-28 15:19:33.900 3030 3030 E AndroidRuntime: at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85) | |
12-28 15:19:33.900 3030 3030 E AndroidRuntime: |
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
#pagelet_rhc_footer, | |
#pagelet_trending_tags_and_topics, | |
#pagelet_games_rhc{ | |
display:none; | |
} |
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
angular.module("ui-leaflet") | |
.factory("leafletPropMap", function() { | |
var PropMap; | |
return PropMap = (function() { | |
function PropMap() { | |
this.remove = bind(this.remove, this); | |
this.put = bind(this.put, this); | |
this.stateChanged = bind(this.stateChanged, this); | |
this.get = bind(this.get, this); |
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
angular.module('ui-leaflet').directive('markers', | |
function (leafletLogger, $rootScope, $q, leafletData, leafletHelpers, leafletMapDefaults, | |
leafletMarkersHelpers, leafletMarkerEvents, leafletIterators, leafletWatchHelpers, | |
leafletDirectiveControlsHelpers) { | |
//less terse vars to helpers | |
var isDefined = leafletHelpers.isDefined, | |
errorHeader = leafletHelpers.errorHeader, | |
Helpers = leafletHelpers, | |
isString = leafletHelpers.isString, | |
addMarkerWatcher = leafletMarkersHelpers.addMarkerWatcher, |
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
angular.module('ui-leaflet') | |
.config(function($provide){ | |
$provide.decorator('markersDirective', function($delegate){ | |
var LabelMarkers = function(){ | |
$delegate.apply(this, arguments); | |
}; | |
LabelMarkers.prototype = new $delegate(); | |
LabelMarkers.prototype.addMarkers = function(mapId, markersToRender, oldModels, map, layers, leafletMarkers, leafletScope, |
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
[11:15:36] Finished 'browserify' after 26 s | |
RangeError: Maximum call stack size exceeded | |
at String.match (native) | |
at RegExp.<anonymous> (/Users/nem/code/github/rmaps/map/node_modules/karma/node_modules/core-js/modules/$.fix-re-wks.js:18:43) | |
at String.match (/Users/nem/code/github/rmaps/map/node_modules/karma/node_modules/core-js/modules/es6.regexp.match.js:8:34) | |
at Object.exports.fromSource (/Users/nem/code/github/rmaps/map/node_modules/gulp-sourcemaps/node_modules/convert-source-map/index.js:118:19) | |
at DestroyableTransform.sourceMapInit [as _transform] (/Users/nem/code/github/rmaps/map/node_modules/gulp-sourcemaps/index.js:35:27) | |
at DestroyableTransform.Transform._read (/Users/nem/code/github/rmaps/map/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10) | |
at DestroyableTransform.Transform._write (/Users/nem/code/github/rmaps/map/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12) | |
at doWrite (/Users/nem/code/github/rmaps/map/node_mo |