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
| $E.__container__.lookup('service:store').findAll('site').then((sites) => { | |
| sites.forEach((x, index) => { | |
| setTimeout(() => { | |
| $E.__container__.lookup('service:gMap') | |
| .geocode({address: x.get('location')}) | |
| .then((geocodes) => { | |
| let lat = geocodes[0].geometry.location.lat(); | |
| let lng = geocodes[0].geometry.location.lng(); | |
| console.log(x.get('name'), lat, lng); | |
| x.set('lat', lat); |
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
| server.pretender.handledRequest = function(verb, path, request) { | |
| if (server.shouldLog()) { | |
| let { responseText, requestBody } = request; | |
| let logData = {}; | |
| if (requestBody) { | |
| let loggedRequest; | |
| try { | |
| loggedRequest = JSON.parse(requestBody); | |
| } catch(e) { |
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
| using Controllers; | |
| using Core.Entities; | |
| using Tests.Integration.Common; | |
| using Newtonsoft.Json.Linq; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Net; | |
| using Xunit; |
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
| // Command line arguments | |
| var target = Argument("target", "Default"); | |
| var tag = Argument<string>("tag", "cake"); | |
| // 1. Restore | |
| Task("Restore").Does(() => { | |
| DotNetCoreRestore("./src/Hello.Harvester/"); | |
| DotNetCoreRestore("./src/Hello.UnitTests/"); | |
| }); |
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
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| store: Ember.inject.service(), | |
| post: null, | |
| init() { | |
| let post = this.get('store').createRecord('post'); |
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
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| }); |
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
| import Ember from 'ember'; | |
| import { task } from 'ember-concurrency'; | |
| import { inject as service } from '@ember/service'; | |
| import { computed } from '@ember/object'; | |
| export default Ember.Controller.extend({ | |
| store: service(), | |
| items: computed(function() { | |
| let store = this.get('store'); | |
| return [ |
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
| import Ember from 'ember'; | |
| import { task } from 'ember-concurrency'; | |
| import { computed } from '@ember/object'; | |
| export default Ember.Controller.extend({ | |
| items: computed('model', function() { | |
| return this.get('model'); | |
| }), | |
| doThis: task(function*(item) { |
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
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| queryParams: ['myValue'], | |
| myValue: 1.2, | |
| actions: { | |
| updateValue(value) { | |
| console.log(arguments); |
OlderNewer