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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>limit.maxfiles</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>launchctl</string> | |
<string>limit</string> |
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
through = require 'through' | |
request = require 'hyperquest' | |
logger = require './logger' | |
http = require 'http' | |
server = http.createServer (req, res) -> | |
req.pipe through (buf, enc) -> | |
@queue String(buf).toUpperCase() + '!!' | |
@queue null | |
.pipe res |
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
$scope.dropdownToggled = function (style) { | |
selectedStyle = style; | |
$scope.selectedStyle = selectedStyle; | |
//copy to force digest | |
base = angular.copy(baselayers); | |
Object.keys(base).forEach(function(layerName){ | |
base[layerName].doRefresh = true; | |
}); | |
base.googleRoadmap.layerOptions.mapOptions = allStyles[style]; |
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
paths = require '../../common/config/paths' | |
path = require 'path' | |
gulp = require 'gulp' | |
gutil = require 'gulp-util' | |
globby = require 'globby' | |
$ = require('gulp-load-plugins')() | |
browserify = require 'browserify' | |
browserify_coffeelint = require 'browserify-coffeelint' | |
watchify = require 'watchify' | |
source = require 'vinyl-source-stream' |
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
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") | |
.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
#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
from locust import Locust, TaskSet | |
urls = ["someurl1", "someurl2"] | |
lamda_set = {} | |
for url in urls: | |
lamda_set[lambda l: l.client.get(url)] = 1 | |