Skip to content

Instantly share code, notes, and snippets.

import Ember from 'ember';
const {computed, run} = Ember;
function getRandomNumber(min, max) {
return (Math.random() * (max - min) + min).toFixed(0);
}
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
someArray: [1, 2, 3],
someNumber: 1,
someString: 'Hello',
init() {
this._super(...arguments);

Keybase proof

I hereby claim:

  • I am martinmalinda on github.
  • I am martinmalinda (https://keybase.io/martinmalinda) on keybase.
  • I have a public key ASAyupWNal7Eck_u_M-4VdnCGARcwy4BPo4I5U1qvMd6nAo

To claim this, I am signing this object:

import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
value: 50,
max: 100,
actions: {
increment() {
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
weather: 'sunny',
forecast: Ember.computed(function(){
this.set('weather', 'rainy');
return 'it will be rainy';
@MartinMalinda
MartinMalinda / hello_world.rb
Created August 25, 2019 06:37
Hello World Examples
foo
@MartinMalinda
MartinMalinda / hello_world.rb
Created August 25, 2019 06:45
Hello World Examples
foo
@MartinMalinda
MartinMalinda / hello_world.rb
Created August 25, 2019 06:47
Hello World Examples
foo
@MartinMalinda
MartinMalinda / hello_world.rb
Created August 25, 2019 06:48
Hello World Examples
foo
@MartinMalinda
MartinMalinda / map-data.json
Created August 25, 2019 13:07
World religion data scraped from Wikipedia.
[{"id":"AD","name":"Andorra","type":"land"},{"id":"AE","name":"United Arab Emirates","type":"land"},{"id":"AF","name":"Afghanistan","type":"land"},{"id":"AG","name":"Antigua and Barbuda","type":"land"},{"id":"AI","name":"Anguilla","type":"land"},{"id":"AL","name":"Albania","type":"land"},{"id":"AM","name":"Armenia","type":"land"},{"id":"AO","name":"Angola","type":"land"},{"id":"AQ","name":"Antarctica","type":"land"},{"id":"AR","name":"Argentina","type":"land"},{"id":"AS","name":"American Samoa","type":"land"},{"id":"AT","name":"Austria","type":"land"},{"id":"AU","name":"Australia","type":"land"},{"id":"AW","name":"Aruba","type":"land"},{"id":"AX","name":"Aland Islands","type":"land"},{"id":"AZ","name":"Azerbaijan","type":"land"},{"id":"BA","name":"Bosnia and Herzegovina","type":"land"},{"id":"BB","name":"Barbados","type":"land"},{"id":"BD","name":"Bangladesh","type":"land"},{"id":"BE","name":"Belgium","type":"land"},{"id":"BF","name":"Burkina Faso","type":"land"},{"id":"BG","name":"Bulgaria","type":"land"},{"