Skip to content

Instantly share code, notes, and snippets.

View allthesignals's full-sized avatar
🥑
coding lotsa code

Matt Gardner allthesignals

🥑
coding lotsa code
View GitHub Profile
@allthesignals
allthesignals / tutorial_chicago_bike_routes.geojson
Created July 23, 2018 16:32
GeoJSON of Chicago Bike Lanes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{{log model}}
{{#mapbox-gl class='map-container' initOptions=(hash pitch=30) as |map|}}
{{#map.source options=(hash type='geojson' data=model) as |source|}}
{{source.layer layer=(hash
type='line'
paint=(hash line-color='#007cbf' line-width=10))}}
{{/map.source}}
{{/mapbox-gl}}
{{bike-lane-map data=model}}
{{outlet}}
{{#mapbox-gl class='map-container' initOptions=(hash pitch=30) as |map|}}
{{#map.source options=(hash type='geojson' data=data) as |source|}}
{{source.layer layer=(hash
type='line'
paint=(hash line-color='#007cbf' line-width=10))}}
{{/map.source}}
{{/mapbox-gl}}
{{#mapbox-gl class='map-container' initOptions=initOptions as |map|}}
{{#map.source options=bikeLaneSourceOptions as |source|}}
{{source.layer layer=bikeLaneStyles}}
{{/map.source}}
{{/mapbox-gl}}
export default Component.extend({
// ...
bikeLaneStyles: {
type: 'line',
paint: {
'line-color': {
property: 'bikeroute',
type: 'categorical',
stops: [
['ACCESS PATH', '#e41a1c'],
@allthesignals
allthesignals / controllers.application.js
Last active September 18, 2018 18:31
Computed Keyed on Nested Pojo Array
import Ember from 'ember';
import { computed } from '@ember/object';
export default Ember.Controller.extend({
init() {
this._super(...arguments);
this.pojoProp = {
features: [],
};
},
@allthesignals
allthesignals / cloudSettings
Created October 18, 2018 17:53 — forked from buschtoens/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-10-18T14:27:42.834Z","extensionVersion":"v3.2.0"}
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
this._super(...arguments);
console.log(this.getProperties('object.nested.deeply'))
},
object: {
nested: {
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@babel/[email protected]":
version "7.0.0-beta.44"
resolved "http://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.44.tgz#2a02643368de80916162be70865c97774f3adbd9"
dependencies:
"@babel/highlight" "7.0.0-beta.44"