This file contains 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
interface Capability { | |
isAllowed(args: Record<string, any>): boolean; | |
get disallowReason(): string; | |
get name(): string; | |
get accountId(): string; | |
} | |
class CapabilityService extends Service { |
This file contains 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
{"lastUpload":"2020-11-21T16:52:46.345Z","extensionVersion":"v3.4.3"} |
This file contains 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
""========================================== | |
" MY VIMRC | |
"========================================== | |
"------------------------------ | |
" § SET's | |
"------------------------------ | |
set nocompatible " Disable vi-compatibility | |
"set t_Co=256 |
This file contains 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 { tracker } from '@glimmer/tracking'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
@tracked elements = []; | |
@action addElement() { | |
this.elements.pushObject('ele1'); | |
} |
This file contains 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', | |
prop1: Ember.computed('appName', function() { | |
return this.get('appName') + '!'; | |
}), | |
prop2: Ember.computed('appName', { |
This file contains 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 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'; | |
import lookupValidator from 'ember-changeset-validations'; | |
import Changeset from 'ember-changeset'; | |
import { validatePresence, validateFormat } from 'ember-changeset-validations/validators'; | |
const validations = { | |
companyName: [validatePresence(true)], | |
email: [validatePresence(true), validateFormat({ type: 'email' })], | |
}; |
This file contains 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
public interface IDatabaseStrategy { | |
void inicjujPolaczenie(); | |
void zapiszDoBazyDanych(int dane); | |
void zamknijPolaczenie(); | |
} | |
public class MysqlStrategy implements IDatabaseStrategy { | |
@Override | |
public void inicjujPolaczenie() { | |
System.out.println("Inicjuje MySQL"); |
This file contains 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', | |
options: [ | |
{ groupName: 'Group 1', options: Ember.A(['option 1', 'option 2']), }, | |
{ groupName: 'Group 2', options: Ember.A(['option 5', 'option 3']), }, | |
].map(i => Ember.Object.create(i)), |
This file contains 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', | |
johnIncluded: Ember.computed('models.[]', 'johnModel', function() { | |
return this.get('models').contains(this.get('johnModel')); | |
}), | |
init() { |
NewerOlder