Inspired from: https://www.maketecheasier.com/create-blank-text-file-mac/
-
Launch
Automator.app
-
In the menubar click
File
>New
> SelectApplication
then clickChoose
-
In the left pane search for the item
Run AppleScript
import Controller from '@ember/controller'; | |
import { tracked } from '@glimmer/tracking'; | |
import { action } from '@ember/object'; | |
export default class ApplicationController extends Controller { | |
@tracked numberItems = 1; | |
get myItems() { | |
return [ 1, 2, 3, 4 ] | |
} |
import Controller from '@ember/controller'; | |
import { action } from '@ember/object'; | |
export default class ApplicationController extends Controller { | |
prop = 'the prop'; | |
@action | |
withAction() { | |
// `@action` binds `this` to the method | |
alert(this.prop) |
import Ember from 'ember'; | |
// Ember 1.10 | |
// Order also respected on Ember v3.16.10 | |
export default Ember.Route.extend({ | |
//---fire in order on route enter--- |
import type EmberApp from '@ember/application'; | |
import type { A as EmberArray } from '@ember/array'; | |
import type { Registry as ControllerRegistry } from '@ember/controller'; | |
import type { RouteModel } from '@ember/routing/router-service'; | |
// --- Glimmer Components | |
interface IGlimmerConstructorOwner extends EmberApp {} |
const controller = new AbortController(); | |
const signal = controller.signal; | |
let RESOLVED_P; | |
function doSomethingAsync(pIndex, pDelay) { | |
if (signal.aborted) { | |
return Promise.reject(new DOMException('Aborted', 'AbortError')); | |
} | |
return new Promise((resolve, reject) => { |
import Controller from '@ember/controller'; | |
import { action } from '@ember/object'; | |
import { tracked } from '@glimmer/tracking'; | |
const DEFAULT_A = [ 'default_a' ]; | |
const DEFAULT_B = [ 'default_b' ]; | |
export default class AppController extends Controller { | |
@tracked _prop_A = DEFAULT_A.slice(); | |
@tracked _prop_B = DEFAULT_B.slice(); |
// when T is any|unknown, Y is returned, otherwise N | |
type IsAnyUnknown<T, Y, N> = unknown extends T ? Y : N; | |
// when T is never, Y is returned, otherwise N | |
type IsNever<T, Y = true, N = false> = [T] extends [never] ? Y : N; | |
// when T is a tuple, Y is returned, otherwise N | |
// valid tuples = [string], [string, boolean], | |
// invalid tuples = [], string[], (string | number)[] |
Inspired from: https://www.maketecheasier.com/create-blank-text-file-mac/
Launch Automator.app
In the menubar click File
> New
> Select Application
then click Choose
In the left pane search for the item Run AppleScript
While GitHub provides the ability to remove old workflow runs (https://github.blog/changelog/2020-07-07-github-actions-ability-to-delete-workflow-runs/), it fails to provide an option to delete all workflow runs for a particular workflow.
Manual deletion can become extremely tedious...
Turns out, this can be achieved using GitHub CLI (https://github.com/cli/cli), read on.