Skip to content

Instantly share code, notes, and snippets.

Avatar
🐹
#TomsterOnTour

Dawid Pośliński PoslinskiNet

🐹
#TomsterOnTour
View GitHub Profile
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
value: '<h1>Demo header</h1>This is some <i>italic</i> text.'
});
@PoslinskiNet
PoslinskiNet / Broccoli analyzer.MD
Last active Jun 29, 2018
Analyze your ember app vendor file
View Broccoli analyzer.MD
  • npm install -g broccoli-concat-analyser
  • CONCAT_STATS=true ember s -e production
  • kill the server
  • broccoli-concat-analyser ./concat-stats-for

IMAGE

View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
value: `<div>
<p><span style="font-weight: bold;">Type: </span> exploration, adventure</p>
<br>
<p><span style="font-weight: bold;">Audio: </span> English</p>
</div>`,
pellOptions: {
@PoslinskiNet
PoslinskiNet / components.navigation-bar.js
Created Sep 23, 2018
#30DaysOfEmber - Computed Properties Demo
View components.navigation-bar.js
// app/components/navigation-bar/component.js
import Component from '@ember/component';
import { computed } from '@ember/object';
export default Component.extend({
counter: 0,
clickCounterDecorated: computed('counter', function() {
return `Counter: ${this.counter}`;
}),
View components.github-user-search.js
import Ember from 'ember';
import { task, timeout } from 'ember-concurrency';
import { isBlank } from '@ember/utils';
const DEBOUNCE_MS = 250;
const API_URL = 'https://api.github.com/search/users?q=';
export default Ember.Component.extend({
searchUsers: task(function * (term) {
if (isBlank(term)) { return []; }
@PoslinskiNet
PoslinskiNet / gist:70d75abfd2afbbd97458
Created Jul 14, 2015
Arduino Uno with ESP8622 - light on/off monitor and notify remote API end-point
View gist:70d75abfd2afbbd97458
/*
Photoresistor Part (Connection)
http://nakkaya.com/images/post/photoresistor.png
Connect the photoresistor one leg to pin 0, and pin to +5V
Connect a resistor (around 10k is a good value, higher
values gives higher readings) from pin 0 to GND.
----------------------------------------------------
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View controllers.application.js
import Ember from 'ember';
import { computed } from '@ember/object';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
test: computed('{bla,la}', function() {
return `${this.bla},${this.la}`;
}),
You can’t perform that action at this time.