A hastily-written strawman for how bare imports could be resolved in browsers — see this convo.
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
import Ember from 'ember'; | |
import computed from 'ember-new-computed'; | |
const inject = Ember.inject; | |
const alias = computed.alias; | |
const sort = computed.sort; | |
export default Ember.Controller.extend({ | |
sessionManager: inject.service(), | |
person: alias('sessionManager.person'), |
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
// app/transforms/array.js | |
import Ember from 'ember'; | |
import DS from 'ember-data'; | |
export default DS.Transform.extend({ | |
deserialize: function(value) { | |
if (Ember.isArray(value)) { | |
return Ember.A(value); | |
} else { | |
return Ember.A(); |
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
image: node:7.10 | |
cache: | |
paths: | |
- node_modules/ | |
- bower_components/ | |
before_script: | |
# Install Chrome | |
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - |
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 ruby:2.3.3 | |
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs | |
RUN mkdir /app | |
WORKDIR /app | |
ADD Gemfile /app/Gemfile | |
ADD Gemfile.lock /app/Gemfile.lock | |
RUN bundle install | |
ADD . /app | |
EXPOSE 3000 | |
CMD rails s -p 3000 |
This script creates headers of all files in a given directory to use them for HTTP/2 server push.
Usage: linkheader.sh /mydir
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
import React, { Suspense, useState } from "react"; | |
import { unstable_createResource as createResource } from "react-cache"; | |
import { | |
Autocomplete as Combobox, | |
Input as ComboboxInput, | |
List as ComboboxList, | |
Option as ComboboxOption | |
} from "./Combobox"; | |
function App({ tabIndex, navigate }) { |
- Settings > Core Settings > Title Bar: hidden
- Settings > Packages > Tabs > Always Show Tab Bar: false
- Settings > Themes > UI Theme: Apex https://atom.io/themes/apex-ui
- Settings > Themes > Syntax Theme: Apex https://atom.io/themes/apex-syntax
Just you, your code and nothing else.... :meditatingbuddha:
Imagine a scenario where you've been developing locally with dummy data and at some point decided to move this data to a Firebase instance.
Assuming your JSON file contents looks like the following.
[
{
"name": "Zapallo Anco",
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
/* globals firebaseui */ | |
import Ember from 'ember'; | |
import firebase from 'firebase'; | |
const { computed, inject: { service } } = Ember; | |
export default Ember.Component.extend({ | |
firebaseApp: service(), | |
didInsertElement() { |