A force-directed graph using images as nodes, with accompanying text labels.
This file contains hidden or 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 asyncio | |
from textual import * | |
from textual.app import * | |
from textual.widgets import * | |
class WorkerTest(App): | |
CSS = """ | |
Screen { |
This file contains hidden or 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 asyncio | |
from textual import work | |
from textual.app import App | |
from textual.widgets import Button, TextLog | |
class WorkIt(App): | |
def compose(self): | |
yield Button("run_worker", id="run_worker") |
This file contains hidden or 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
Screen { | |
layout: grid; | |
grid-size: 2; | |
grid-columns: 4fr 1fr; | |
grid-rows: 5 6 1fr 4; | |
} | |
.top { | |
column-span: 2; | |
border-top: mp3top grey; | |
border-left: mp3top grey; |
This file contains hidden or 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 Controller from '@ember/controller'; | |
import {tracked} from '@glimmer/tracking' | |
import { isEmpty } from '@ember/utils'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
@tracked list = [ | |
"Active Directory and Group Policy", | |
"Airwatch", | |
"Apple iOS Apps", |
This file contains hidden or 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 Component from '@glimmer/component'; | |
import { action } from '@ember/object'; | |
import { tracked } from '@glimmer/tracking'; | |
const tasks = new WeakMap(); | |
class Task { | |
@tracked isLoading = true; | |
@tracked lastError; | |
@tracked result; |
This file contains hidden or 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 Controller from '@ember/controller'; | |
import { isEqual } from '@ember/utils'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
a = '1'; | |
get strings() { | |
return isEqual(this.a,this.a); |
This file contains hidden or 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'; | |
export default Ember.Component.extend({ | |
expanded: true, | |
tagName: '', | |
init () { | |
this._super(...arguments) | |
if (this.get('expanded') === undefined) { | |
this.set('expanded', false) | |
} |
This file contains hidden or 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'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains hidden or 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'; | |
export default Ember.Component.extend({ | |
tagName: 'textarea', | |
codeMirror: Ember.inject.service(), | |
becameVisible() { | |
this._super(...arguments); |