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
<template> | |
<textarea>{{current}}</textarea> | |
</template> |
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
<template> | |
<textarea>{{current}}</textarea> | |
</template> |
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 EmberObject from '@ember/object'; | |
declare module '@ember/routing/history-location' { | |
// More info about interface over here - https://github.com/emberjs/ember.js/blob/v3.28.1/packages/%40ember/-internals/routing/lib/location/api.ts | |
export default class HistoryLocation extends EmberObject { | |
protected history: History; | |
replaceURL(url: string): void; | |
setURL(path: string): void; | |
getURL(): string; | |
formatURL(url: string): string; |
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
/** | |
* Remove duplicates from .gitignore | |
* | |
* This function reads the .gitignore file, removes duplicates, and overwrites the gitignore file. | |
* | |
* @param pathToLocalRepo - Path to the local git repository. Default is the current working directory. | |
*/ | |
async function dedupeGitIgnore(pathToLocalRepo: string | null = null): Promise<void> { | |
if (!pathToLocalRepo) { | |
pathToLocalRepo = Deno.cwd(); |
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
## Install OpenVPN | |
# Now we install and configure OpenVPN, do the following commands: | |
sudo apt-get install openvpn | |
cd /etc/openvpn | |
sudo wget https://www.privateinternetaccess.com/openvpn/openvpn.zip |
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.Component.extend({ | |
tagName: 'details', | |
attributeBindings: ['open'], | |
open: true, | |
click(e) { | |
e.preventDefault(); | |
}, | |
actions: { |
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'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
calculatePosition(trigger, content) { | |
let { top, left, width, height } = trigger.getBoundingClientRect(); | |
let { height: contentHeight } = content.getBoundingClientRect(); | |
let style = { | |
left: left + width, |
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 Component from '@ember/component'; | |
export default class MyComponent extends Component { | |
// constructor() { | |
// super(...arguments); | |
// this.tagName = ''; | |
// } | |
tagName = ''; | |
} |
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 Component from '@ember/component'; | |
export default class FormControlInputTextComponent extends Component { | |
tagName = ''; | |
} |
NewerOlder