Skip to content

Instantly share code, notes, and snippets.

View knownasilya's full-sized avatar
🦾
Working on Archegos

Ilya Radchenko knownasilya

🦾
Working on Archegos
View GitHub Profile
@knownasilya
knownasilya / templates.application.hbs
Created February 7, 2019 20:49 — forked from sukima/templates.application.hbs
has-block does not work
<MyComponent>foobar</MyComponent>
@knownasilya
knownasilya / README.md
Last active May 8, 2018 16:06 — forked from thoov/user.hbs
Thought exercise on "Ember Controllerless"

@model, @action and @service basically expose the underlying thing that they decorate to the component set by @associatedComponent (which is made up and not a great name).

I can also see something like @model({ pauseRendering: false }) and @model({ waitForParent: false }) for the data loading.

@knownasilya
knownasilya / components.template-tag.js
Last active April 12, 2017 18:33 — forked from bantic/components.template-tag.js
mobiledoc template fill in
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'span',
classNames: ['template-tag'],
click() {
let tag = this.get('tag');
let promise = this.get('onClick')(tag);
@knownasilya
knownasilya / components.template-tag.js
Last active April 6, 2017 21:19 — forked from bantic/components.template-tag.js
mobiledoc template fill in
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'span',
classNames: ['template-tag'],
click() {
let tag = this.get('tag');
let promise = this.get('onClick')(tag);
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['my-editor'],
didInsertElement() {
let editor = new Mobiledoc.Editor({
html: 'hi',
autofocus: true,
atoms: [
<!doctype html>
<html>
<head>
<title>createLayer</title>
<link href='https://fonts.googleapis.com/css?family=Alike' rel='stylesheet' type='text/css'>
<style>
html, body, #map {
height: 100%;
padding: 0;
margin: 0;
import Ember from 'ember';
export default Ember.Controller.extend({
ui: Ember.inject.service(),
appName: 'Ember Twiddle',
routeNameChanged: Ember.observer('currentRouteName', function () {
var name = this.get('currentRouteName');
this.set('ui.currentRouteName', name);
})
import Ember from 'ember';
let Animal = Ember.Object.extend({
bark() {
return 'aurf!';
},
willDestroy() {
this._super(...arguments);
alert('hi');
@knownasilya
knownasilya / application.route.js
Last active March 9, 2016 20:25 — forked from anonymous/community.js
promiseproxy service
export default Ember.Route.extend({
model() {
return this.get('community');
}
});
@knownasilya
knownasilya / index.html
Last active November 12, 2015 17:44 — forked from d3noob/index.html
Testing Leaflet.js GridLayer
<!DOCTYPE html>
<html>
<head>
<title>GridLayer Test</title>
<meta charset="utf-8" />
<link
rel="stylesheet"
href="http://cdn.leafletjs.com/leaflet/v1.0.0-beta.2/leaflet.css"
/>
<style>