Follow the steps below to setup a local development environment:
Recommended to download latest XQuartz
| Vue.directive('datepicker', { | |
| bind: function (el, binding, vnode, oldVnode) { | |
| $(el).datepicker({ | |
| onSelect: function (date) { | |
| vnode.context.date = date; | |
| } | |
| }); | |
| }, | |
| update: function (el, binding, vnode, oldVnode) { | |
| $(el).datepicker('setDate', binding.value); |
Follow the steps below to setup a local development environment:
Recommended to download latest XQuartz
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Пример отображения геометрии - Sputnik Maps JS API</title> | |
| <link rel="stylesheet" href="http://maps-js.apissputnik.ru/v0.3/sputnik_maps_bundle.min.css"/> | |
| <script src="http://maps-js.apissputnik.ru/v0.3/sputnik_maps_bundle.min.js"></script> | |
| <script src="http://maps-js.apissputnik.ru/v0.3/docs/examples/clusters_data.js"></script> |
| (function(){ | |
| var button_id = "download" | |
| // include this code in your page | |
| // you must have jQuery installed | |
| // you must have a link element with an id of "download" | |
| // this is limited to only one chart on the page (the first) | |
| function encode_as_link(){ | |
| // Add some critical information |
| // Throttle from underscore.js, simplified and deattached | |
| var throttle = function(func, wait) { | |
| var context, args, result; | |
| var timeout = null; | |
| var previous = 0; | |
| var later = function() { | |
| previous = Date.now(); | |
| timeout = null; | |
| result = func.apply(context, args); |
| angular.module('services', []) | |
| .factory('State', function ($rootScope) { | |
| 'use strict'; | |
| var state; | |
| var broadcast = function (state) { | |
| $rootScope.$broadcast('State.Update', state); | |
| }; | |
| var update = function (newState) { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="viewport" content="initial-scale=1.0, width=device-width" /> | |
| <link rel="stylesheet" type="text/css" | |
| href="https://js.api.here.com/v3/3.0/mapsjs-ui.css" /> | |
| <script type="text/javascript" charset="UTF-8" | |
| src="https://js.api.here.com/v3/3.0/mapsjs-core.js"></script> | |
| <script type="text/javascript" charset="UTF-8" | |
| src="https://js.api.here.com/v3/3.0/mapsjs-service.js"></script> |
| <html lang="en" > | |
| <head> | |
| <!--http://jsbin.com/gapatikuwo --> | |
| <!-- Angular Material style sheet --> | |
| <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.css"> | |
| </head> | |
| <body ng-app="BlankApp" ng-cloak> | |
| <style rel="stylesheet"> | |
| body { |
| import Dispatcher, {EventObject} from "Dispatcher"; | |
| /** | |
| * Items collection | |
| */ | |
| export default class Collection { | |
| static E_ADD = 'add'; | |
| static E_REMOVE = 'remove'; | |
| static E_CHANGE = 'change'; |
| var str = "The quick brown fox jumped over the box like an ox with a sox in its mouth"; | |
| str.match(/\w(ox)/g); // ["fox", "box", "sox"] | |
| // match (when used with a 'g' flag) returns an Array with all matches found | |
| // if you don't use the 'g' flag then it acts the same as the 'exec' method. | |
| str.match(/\w(ox)/); // ["fox", "ox"] | |
| /\w(ox)/.exec(str); // ["fox", "ox"] |