Skip to content

Instantly share code, notes, and snippets.

Avatar

Brian Runnells Dhaulagiri

View GitHub Profile
View merge_repos.sh
#!/bin/bash
# This script takes a remote repository and merges it into
# the current one as a subdirectory
set -e
# REPOS=('design-system-components' 'design-system-tokens' 'design-system-figma-scripting')
# REPOS=('flight')
REPOS=('design-system-tokens')
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
target: 'body',
actions: {
buttonClick() {
this.sendAction('onClick');
}
}
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
glips: [
Ember.Object.create({
status: 'alive'
}),
Ember.Object.create({
status: 'dead'
@Dhaulagiri
Dhaulagiri / mirage.config.js
Created Jan 15, 2018 — forked from samselikoff/mirage.config.js
Mirage 0.3 - ids or objects
View mirage.config.js
export default function() {
//window.server = this;
this.get('users');
};
View adapters.application.js
import DS from 'ember-data';
const { RESTAdapter } = DS;
export default RESTAdapter.extend({});
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
router: Ember.inject.service(),
actions: {
goToRoute() {
this.get('router').transitionTo('bar');
}
}
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
foo: '5',
bar: '100',
baz: '0'
});
View esa.md

default ember-cli 2.12

  • dist/assets/vendor-82dd168f47b4b8274ccf6b8a008f928b.js: 770.45 KB (197.01 KB gzipped)

ember simple auth 1.1.0

  • dist/assets/vendor-e7a5afc936f4c4c7f5a7499cdd80c906.js: 796.11 KB (202.85 KB gzipped)

ember simple auth 1.2.0

  • dist/assets/vendor-37297f20b0776da51a8d76005a664900.js: 808.82 KB (206.68 KB gzipped)
View index.html
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<h1 class="margin-top: 100px;" align="center">Ember.js vs. Dashboard</h1>
<h3 align="center">Release date vs. Dashboard adoption</h3>
<div id="timeline" style="height: 100%; width: 100%; text-align:center;"></div>
<script id="jsbin-javascript">
google.charts.load("current", {packages:["timeline"]});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var container = document.getElementById('timeline');
var chart = new google.visualization.Timeline(container);
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
init() {
this._super(...arguments)
const app = Ember.Object.create({
name:
'starting name'
});
this.set('app', app);